Skip to content

Commit 4cc0fa7

Browse files
Merge pull request #26 from ChainSafe/eclesio/remove-syncwriters-numcompactors
fix: use default badger options
2 parents 413097f + aaca26e commit 4cc0fa7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

database.go

-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ func NewBadgerDB(cfg *Config) (*BadgerDB, error) {
5656
opts = badger.DefaultOptions(cfg.DataDir)
5757
opts.ValueDir = cfg.DataDir
5858
opts.Logger = nil
59-
opts.WithSyncWrites(false)
60-
opts.WithNumCompactors(20)
61-
// opts.WithBlockCacheSize(1 << 16) // TODO: add caching
6259

6360
if cfg.Compress {
6461
opts.WithCompression(options.Snappy)

0 commit comments

Comments
 (0)