Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
@ -138,7 +138,7 @@ func (c *protoCodecV2) Marshal(d []byte, v interface{}, opts ...codec.Option) ([
marshalOptions = f
}
return marshalOptions.MarshalAppend(d, m)
return marshalOptions.MarshalAppend(d[:0], m)
default:
return nil, codec.ErrInvalidMessage
The note is not visible to the blocked user.