From 85320087a446c02ed564fad3d1e2a4a976e8b60d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 4 Jan 2024 13:49:23 -0500 Subject: [PATCH] fix: need to pack with int, not int8 --- serialize/seralizer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serialize/seralizer.go b/serialize/seralizer.go index 042efce..43291c8 100644 --- a/serialize/seralizer.go +++ b/serialize/seralizer.go @@ -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 }