Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #53 from libp2p/fix-go-vet
Browse files Browse the repository at this point in the history
fix go vet
  • Loading branch information
marten-seemann authored May 19, 2021
2 parents fd136a8 + da87a40 commit 8cced0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blank.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (bh *BlankHost) initSignedRecord() error {
log.Error("peerstore does not support signed records")
return errors.New("peerstore does not support signed records")
}
rec := peer.PeerRecordFromAddrInfo(peer.AddrInfo{bh.ID(), bh.Addrs()})
rec := peer.PeerRecordFromAddrInfo(peer.AddrInfo{ID: bh.ID(), Addrs: bh.Addrs()})
ev, err := record.Seal(rec, bh.Peerstore().PrivKey(bh.ID()))
if err != nil {
log.Errorf("failed to create signed record for self, err=%s", err)
Expand Down

0 comments on commit 8cced0d

Please sign in to comment.