fix: need to pack with int, not int8

This commit is contained in:
Derrick Hammer 2024-01-04 13:49:23 -05:00
parent 261c88b568
commit 85320087a4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,11 @@ import (
} }
*/ */
func InitMarshaller(kind types.MetadataType, enc *msgpack.Encoder) error { func InitMarshaller(kind types.MetadataType, enc *msgpack.Encoder) error {
err := enc.EncodeUint8(types.MetadataMagicByte) err := enc.EncodeInt(types.MetadataMagicByte)
if err != nil { if err != nil {
return err return err
} }
err = enc.EncodeUint8(uint8(kind)) err = enc.EncodeInt(int64(kind))
if err != nil { if err != nil {
return err return err
} }