Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
bb635e0a1f |
2
proto.go
2
proto.go
@ -138,7 +138,7 @@ func (c *protoCodecV2) Marshal(d []byte, v interface{}, opts ...codec.Option) ([
|
|||||||
marshalOptions = f
|
marshalOptions = f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return marshalOptions.MarshalAppend(d, m)
|
return marshalOptions.MarshalAppend(d[:0], m)
|
||||||
default:
|
default:
|
||||||
return nil, codec.ErrInvalidMessage
|
return nil, codec.ErrInvalidMessage
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user