lncfg+channeldb: add autocompact flags to BoltConfig

This commit is contained in:
Oliver Gugger
2020-11-09 10:21:23 +01:00
parent c7eea13f95
commit 6131a53eb4
3 changed files with 36 additions and 9 deletions

View File

@@ -26,7 +26,9 @@ type DB struct {
func DefaultDB() *DB {
return &DB{
Backend: BoltBackend,
Bolt: &kvdb.BoltConfig{},
Bolt: &kvdb.BoltConfig{
AutoCompactMinAge: kvdb.DefaultBoltAutoCompactMinAge,
},
}
}