From b19b8813b67c66f2f6bbf874ed0747d581078904 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 17 Sep 2024 13:03:21 +0300 Subject: [PATCH] update to latest micro Signed-off-by: Vasiliy Tolstov --- json/codec_test.go | 2 +- json/json.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/json/codec_test.go b/json/codec_test.go index b8140b7..d359cf7 100644 --- a/json/codec_test.go +++ b/json/codec_test.go @@ -28,7 +28,7 @@ func TestFrameFlatten(t *testing.T) { Name: &codec.Frame{Data: []byte("test")}, } - buf, err := NewCodec().Marshal(s) + buf, err := NewCodec(codec.Flatten(true)).Marshal(s) if err != nil { t.Fatal(err) } diff --git a/json/json.go b/json/json.go index 70e3405..71ea0f1 100644 --- a/json/json.go +++ b/json/json.go @@ -20,8 +20,8 @@ var ( ) var ( - _ codec.Codec = (*jsonCodec)() - _ codec.CodecV2 = (*jsonCodecV2)() + _ codec.Codec = (*jsonCodec)(nil) + _ codec.CodecV2 = (*jsonCodecV2)(nil) ) type JsonMarshalOptions struct {