diff --git a/codec/codec.go b/codec/codec.go index 09caf920..dad14d4a 100644 --- a/codec/codec.go +++ b/codec/codec.go @@ -25,7 +25,8 @@ var ( var ( // DefaultMaxMsgSize specifies how much data codec can handle - DefaultMaxMsgSize = 1024 * 1024 * 4 // 4Mb + DefaultMaxMsgSize = 1024 * 1024 * 4 // 4Mb + DefaultCodec Codec = NewCodec() ) // MessageType diff --git a/store/options.go b/store/options.go index 40ba5af7..b21e4c42 100644 --- a/store/options.go +++ b/store/options.go @@ -32,6 +32,7 @@ func NewOptions(opts ...Option) Options { options := Options{ Logger: logger.DefaultLogger, Context: context.Background(), + Codec: codec.DefaultCodec, } for _, o := range opts { o(&options)