[#xx] Fix writecache type constant copy-pasta bug #570

Merged
fyrchik merged 1 commit from ale64bit/frostfs-node:fix/badger-type-bug into master 2023-08-07 09:30:59 +00:00

View file

@ -728,7 +728,7 @@ func (c *cfg) getWriteCacheOpts(shCfg shardCfg) writecacheconfig.Options {
writecachebbolt.WithLogger(c.log),
)
case writecacheconfig.TypeBadger:
writeCacheOpts.Type = writecacheconfig.TypeBBolt
writeCacheOpts.Type = writecacheconfig.TypeBadger
writeCacheOpts.BadgerOptions = append(writeCacheOpts.BadgerOptions,
writecachebadger.WithPath(wcRead.path),
writecachebadger.WithMaxObjectSize(wcRead.maxObjSize),