refactor: add more value types to marshallMapMsgpack
This commit is contained in:
parent
b1c7c8a9fd
commit
338fbf3d0a
|
@ -139,6 +139,14 @@ func marshallMapMsgpack(enc *msgpack.Encoder, m *linkedhashmap.Map) error {
|
|||
if err := enc.Encode(&v); err != nil {
|
||||
return err
|
||||
}
|
||||
case *FileVersion:
|
||||
if err := enc.Encode(&v); err != nil {
|
||||
return err
|
||||
}
|
||||
case *encoding.CID:
|
||||
if err := enc.Encode(&v); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("unsupported type for encoding")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue