1
0
mirror of https://github.com/libp2p/go-libp2p-peerstore.git synced 2025-03-30 13:50:07 +08:00

fix unmarshalling of peer IDs

This commit is contained in:
Steven Allen 2019-04-23 00:59:28 -07:00
parent deb2163a68
commit 926321cd88

View File

@ -46,7 +46,7 @@ func (id *ProtoPeerID) Unmarshal(data []byte) (err error) {
func (id *ProtoPeerID) UnmarshalJSON(data []byte) error {
var v []byte
err := json.Unmarshal(data, v)
err := json.Unmarshal(data, &v)
if err != nil {
return err
}