Skip to content

Commit

Permalink
chore: update versadb default config
Browse files Browse the repository at this point in the history
  • Loading branch information
will@2012 committed Sep 14, 2024
1 parent 6d082af commit 8c3f17e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions triedb/versiondb/versadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ func New(config *Config) *VersionDB {
if config != nil {
path = config.Path
cfg = &versa.VersaDBConfig{
FlushInterval: config.FlushInterval,
MaxStatesInMem: config.MaxStatesInMem,
FlushInterval: 2000,
MaxStatesInMem: config.MaxStatesInMem,
MemLowWaterMark: 40,
MemHighWaterMark: 60,
MemEvictInternal: 200,
}
}
db, err := versa.NewVersaDB(path, cfg)
Expand Down

0 comments on commit 8c3f17e

Please sign in to comment.