Do not sync

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-09-16 20:38:28 +02:00
parent 53ab17cf50
commit 1f4d1dcc58
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -101,6 +101,8 @@ var importBenchCmd = &cli.Command{
bdgOpt := badger.DefaultOptions
bdgOpt.GcInterval = 0
bdgOpt.Options.SyncWrites = false
bdgOpt.Options.Truncate = true
bds, err := badger.NewDatastore(tdir, &bdgOpt)
if err != nil {