fix: init em.Data
This commit is contained in:
parent
c00fe56389
commit
4b6f71ea1a
|
@ -124,6 +124,8 @@ func (em *ExtraMetadata) DecodeMsgpack(dec *msgpack.Decoder) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
em.Data = make(map[int]interface{}, mapLen)
|
||||||
|
|
||||||
for i := 0; i < mapLen; i++ {
|
for i := 0; i < mapLen; i++ {
|
||||||
key, err := dec.DecodeInt8()
|
key, err := dec.DecodeInt8()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue