Skip to content

Commit

Permalink
Merge pull request #72 from libp2p/fix/unmarshal-peer-id
Browse files Browse the repository at this point in the history
fix unmarshalling of peer IDs
  • Loading branch information
Stebalien committed Apr 23, 2019
2 parents c14eeb5 + 3a98ccd commit e70a6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/peerstore/pb/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e70a6ed

Please sign in to comment.