Revert "[#1367] writecache: Move DB related code to upgrade.go"

This reverts commit f345fe9a58.
This commit is contained in:
Dmitrii Stepanov 2025-01-22 11:36:42 +03:00
parent 1fc95f6ed8
commit 056a1e0bbd
Signed by: dstepanov-yadro
GPG key ID: 237AF1A763293BC0
5 changed files with 112 additions and 111 deletions

View file

@ -45,7 +45,10 @@ const (
defaultMaxCacheSize = 1 << 30 // 1 GiB
)
var dummyCanceler context.CancelFunc = func() {}
var (
defaultBucket = []byte{0}
dummyCanceler context.CancelFunc = func() {}
)
// New creates new writecache instance.
func New(opts ...Option) Cache {