From 6f666bddafad3c44b67a42c62b29106a820489d9 Mon Sep 17 00:00:00 2001 From: "will@2012" Date: Wed, 19 Jun 2024 19:39:32 +0800 Subject: [PATCH] chore: polish some code --- trie/triedb/pathdb/database.go | 1 - 1 file changed, 1 deletion(-) diff --git a/trie/triedb/pathdb/database.go b/trie/triedb/pathdb/database.go index 15c30a329a..4139dfc8b3 100644 --- a/trie/triedb/pathdb/database.go +++ b/trie/triedb/pathdb/database.go @@ -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 }