[#158] metabase: Construct DB using options

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-09 13:14:52 +03:00 committed by Alex Vanin
parent 0cd05fdca5
commit 60e4b5ddff
3 changed files with 33 additions and 7 deletions

View file

@ -368,7 +368,9 @@ func initLocalStorage(c *cfg) {
)
fatalOnErr(err)
c.cfgObject.metastorage = meta.NewDB(boltDB)
c.cfgObject.metastorage = meta.NewDB(
meta.FromBoltDB(boltDB),
)
}
func initBucket(prefix string, c *cfg) (bucket bucket.Bucket, err error) {