Skip to content

Commit 53c7e8a

Browse files
committed
change(cache): dont use msgp codec
1 parent 7100f01 commit 53c7e8a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cache/cache.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"github.com/l3uddz/crop/stringutils"
66
"github.com/pkg/errors"
77
"github.com/zippoxer/bow"
8-
"github.com/zippoxer/bow/codec/msgp"
98
)
109

1110
var (
@@ -23,10 +22,7 @@ func Init(cachePath string, logLevel int) error {
2322
cacheFilePath = cachePath
2423

2524
// set badger options
26-
opts := []bow.Option{
27-
// codec
28-
bow.SetCodec(msgp.Codec{}),
29-
}
25+
opts := make([]bow.Option, 0)
3026

3127
if logLevel < 2 {
3228
// disable badger logging for non trace log level

0 commit comments

Comments
 (0)