use default codec for store

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-12-11 00:21:53 +03:00
parent a13cb01005
commit 0a68a9c278
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@ var (
var (
// DefaultMaxMsgSize specifies how much data codec can handle
DefaultMaxMsgSize = 1024 * 1024 * 4 // 4Mb
DefaultCodec Codec = NewCodec()
)
// MessageType

View File

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