From bf00e3c290e623aa04e9b41b9665cbaca0b8f58a Mon Sep 17 00:00:00 2001 From: "maksim.konovalov" Date: Fri, 10 Jan 2025 22:33:35 +0300 Subject: [PATCH] remo --- api.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api.go b/api.go index d234ddc..00f40bf 100644 --- a/api.go +++ b/api.go @@ -121,10 +121,7 @@ func (r *vshardStorageCallResponseProto) DecodeMsgpack(d *msgpack.Decoder) error // isVShardRespOk is true buf := bytes.NewBuffer(nil) - adjustmentByte := byte(respArrayLen - 1) - - // write that it is array and length of adjustment - buf.Write([]byte{0xDD, 0, 0, 0, adjustmentByte}) + buf.WriteByte(msgpcode.FixedArrayLow | byte(respArrayLen-1)) _, err = buf.ReadFrom(d.Buffered()) if err != nil {