Merge pull request #6819 from ipfs/chore/badger-no-sync

fix(badgerds): turn off sync writes by default
This commit is contained in:
Steven Allen 2020-01-10 10:36:20 +01:00 committed by GitHub
commit f804bb67aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ func (*badgerdsPlugin) DatastoreConfigParser() fsrepo.ConfigFromMap {
sw, ok := params["syncWrites"]
if !ok {
c.syncWrites = true
c.syncWrites = false
} else {
if swb, ok := sw.(bool); ok {
c.syncWrites = swb