[#570] Fix writecache type constant copy-pasta bug
Some checks failed
Build / Build Components (1.19) (pull_request) Failing after 3s
Build / Build Components (1.20) (pull_request) Failing after 3s
Tests and linters / Lint (pull_request) Failing after 4s
Tests and linters / Tests (1.19) (pull_request) Failing after 3s
Tests and linters / Tests (1.20) (pull_request) Failing after 3s
Tests and linters / Tests with -race (pull_request) Failing after 3s
Tests and linters / Staticcheck (pull_request) Failing after 3s
Vulncheck / Vulncheck (pull_request) Failing after 3s
Some checks failed
Build / Build Components (1.19) (pull_request) Failing after 3s
Build / Build Components (1.20) (pull_request) Failing after 3s
Tests and linters / Lint (pull_request) Failing after 4s
Tests and linters / Tests (1.19) (pull_request) Failing after 3s
Tests and linters / Tests (1.20) (pull_request) Failing after 3s
Tests and linters / Tests with -race (pull_request) Failing after 3s
Tests and linters / Staticcheck (pull_request) Failing after 3s
Vulncheck / Vulncheck (pull_request) Failing after 3s
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
1a0cb0f34a
commit
5bbfebba2d
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ func (c *cfg) getWriteCacheOpts(shCfg shardCfg) writecacheconfig.Options {
|
||||||
writecachebbolt.WithLogger(c.log),
|
writecachebbolt.WithLogger(c.log),
|
||||||
)
|
)
|
||||||
case writecacheconfig.TypeBadger:
|
case writecacheconfig.TypeBadger:
|
||||||
writeCacheOpts.Type = writecacheconfig.TypeBBolt
|
writeCacheOpts.Type = writecacheconfig.TypeBadger
|
||||||
writeCacheOpts.BadgerOptions = append(writeCacheOpts.BadgerOptions,
|
writeCacheOpts.BadgerOptions = append(writeCacheOpts.BadgerOptions,
|
||||||
writecachebadger.WithPath(wcRead.path),
|
writecachebadger.WithPath(wcRead.path),
|
||||||
writecachebadger.WithMaxObjectSize(wcRead.maxObjSize),
|
writecachebadger.WithMaxObjectSize(wcRead.maxObjSize),
|
||||||
|
|
Loading…
Reference in a new issue