From 1c8fb28c99c0b04f11f56de888a58b2486d97ffd Mon Sep 17 00:00:00 2001 From: joeylichang Date: Tue, 15 Oct 2024 10:25:10 +0800 Subject: [PATCH] fix: change version db config --- triedb/versiondb/versadb.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/triedb/versiondb/versadb.go b/triedb/versiondb/versadb.go index fe92fa69c..3c749bea0 100644 --- a/triedb/versiondb/versadb.go +++ b/triedb/versiondb/versadb.go @@ -29,20 +29,14 @@ func New(config *Config) *VersionDB { if config != nil { path = config.Path cfg = &versa.VersaDBConfig{ - FlushInterval: 2000, - MaxStatesInMem: 128, - MemLowWaterMark: 40, - MemHighWaterMark: 60, - MemEvictInternal: 200, + FlushInterval: 6000, + MaxStatesInMem: 128, } _ = cfg } db, err := versa.NewVersaDB(path, &versa.VersaDBConfig{ - FlushInterval: 2000, - MaxStatesInMem: 128, - MemLowWaterMark: 40, - MemHighWaterMark: 60, - MemEvictInternal: 200, + FlushInterval: 6000, + MaxStatesInMem: 128, }) if err != nil { log.Crit("failed to new version db", "error", err)