fix: change version db config
This commit is contained in:
parent
6d41ff8190
commit
1c8fb28c99
@ -29,20 +29,14 @@ func New(config *Config) *VersionDB {
|
||||
if config != nil {
|
||||
path = config.Path
|
||||
cfg = &versa.VersaDBConfig{
|
||||
FlushInterval: 2000,
|
||||
FlushInterval: 6000,
|
||||
MaxStatesInMem: 128,
|
||||
MemLowWaterMark: 40,
|
||||
MemHighWaterMark: 60,
|
||||
MemEvictInternal: 200,
|
||||
}
|
||||
_ = cfg
|
||||
}
|
||||
db, err := versa.NewVersaDB(path, &versa.VersaDBConfig{
|
||||
FlushInterval: 2000,
|
||||
FlushInterval: 6000,
|
||||
MaxStatesInMem: 128,
|
||||
MemLowWaterMark: 40,
|
||||
MemHighWaterMark: 60,
|
||||
MemEvictInternal: 200,
|
||||
})
|
||||
if err != nil {
|
||||
log.Crit("failed to new version db", "error", err)
|
||||
|
Loading…
Reference in New Issue
Block a user