fix reading mask

This commit is contained in:
Pavel Merzlyakov 2023-07-27 02:04:35 +03:00
parent de9695a724
commit 8779ce5f96
1 changed files with 4 additions and 0 deletions

View File

@ -530,6 +530,10 @@ func (rd *msgpackReader) Skip() error {
} }
func (rd *msgpackReader) TryReadMask() (bool, FieldsMask, error) { func (rd *msgpackReader) TryReadMask() (bool, FieldsMask, error) {
if rd.curr.assoc {
return false, FieldsMask{}, nil
}
maskLen, err := rd.dec.DecodeArrayLen() maskLen, err := rd.dec.DecodeArrayLen()
if err != nil { if err != nil {
if err == io.EOF { if err == io.EOF {