Skip to content

Commit

Permalink
hardcode fast node cache size to 100k
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Mar 27, 2022
1 parent 2b3c847 commit 5d79210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5d79210

Please sign in to comment.