Updated number of version to keep to 1 (#117)
This commit is contained in:
Родитель
c595202d01
Коммит
968799a319
|
@ -96,9 +96,6 @@ func OpenStore(factory badgerwrap.Factory, config *Config) (badgerwrap.DB, error
|
|||
|
||||
opts = opts.WithSyncWrites(config.BadgerSyncWrites)
|
||||
|
||||
// https://github.com/dgraph-io/badger/issues/1228
|
||||
opts = opts.WithNumVersionsToKeep(0)
|
||||
|
||||
db, err := factory.Open(opts)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("badger.OpenStore failed with: %v", err)
|
||||
|
|
Загрузка…
Ссылка в новой задаче