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

Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
fix/badger-wc-logging
Alejandro Lopez 2023-08-07 12:05:00 +03:00
parent 1a0cb0f34a
commit 5bbfebba2d
1 changed files with 1 additions and 1 deletions

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),