Skip to content

Commit

Permalink
chore: polish some code
Browse files Browse the repository at this point in the history
  • Loading branch information
will@2012 committed Jun 19, 2024
1 parent e9871a6 commit 6f666bd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion trie/triedb/pathdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ type Config struct {
func (c *Config) sanitize() *Config {
conf := *c
if conf.DirtyCacheSize > MaxBufferSize {
conf.CleanCacheSize = conf.DirtyCacheSize - MaxBufferSize
log.Warn("Sanitizing invalid node buffer size", "provided", common.StorageSize(conf.DirtyCacheSize), "updated", common.StorageSize(MaxBufferSize))
conf.DirtyCacheSize = MaxBufferSize
}
Expand Down

0 comments on commit 6f666bd

Please sign in to comment.