Use configurable WAL flush inteval

This commit is contained in:
Dimitrij Denissenko 2017-10-03 11:35:38 +01:00
parent e19b648377
commit 83c984d9a3
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -204,7 +204,7 @@ func Open(dir string, l log.Logger, r prometheus.Registerer, opts *Options) (db
return nil, errors.Wrap(err, "create leveled compactor")
}
wal, err := OpenSegmentWAL(filepath.Join(dir, "wal"), l, 10*time.Second)
wal, err := OpenSegmentWAL(filepath.Join(dir, "wal"), l, opts.WALFlushInterval)
if err != nil {
return nil, err
}