Browse Source

fix go vet

pull/1411/head
Marten Seemann 4 years ago
parent
commit
67d1fe5429
  1. 2
      p2p/host/blank/blank.go

2
p2p/host/blank/blank.go

@ -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)

Loading…
Cancel
Save