fix: need to pack with int, not int8
This commit is contained in:
parent
261c88b568
commit
85320087a4
|
@ -15,11 +15,11 @@ import (
|
|||
}
|
||||
*/
|
||||
func InitMarshaller(kind types.MetadataType, enc *msgpack.Encoder) error {
|
||||
err := enc.EncodeUint8(types.MetadataMagicByte)
|
||||
err := enc.EncodeInt(types.MetadataMagicByte)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = enc.EncodeUint8(uint8(kind))
|
||||
err = enc.EncodeInt(int64(kind))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue