From 5d792107dd8f94e6e8dbf808ee4594984e0b0819 Mon Sep 17 00:00:00 2001 From: Roman Date: Sun, 27 Mar 2022 11:54:48 -0700 Subject: [PATCH] hardcode fast node cache size to 100k --- nodedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodedb.go b/nodedb.go index a592a1ebf..b07881173 100644 --- a/nodedb.go +++ b/nodedb.go @@ -105,7 +105,7 @@ func newNodeDB(db dbm.DB, cacheSize int, opts *Options) *nodeDB { nodeCacheSize: cacheSize, nodeCacheQueue: list.New(), fastNodeCache: make(map[string]*list.Element), - fastNodeCacheSize: cacheSize, + fastNodeCacheSize: 100000, fastNodeCacheQueue: list.New(), versionReaders: make(map[int64]uint32, 8), storageVersion: string(storeVersion),