fix reading mask
This commit is contained in:
parent
de9695a724
commit
8779ce5f96
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue