Skip to content

Commit

Permalink
peer: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed Jun 10, 2020
1 parent 691fae8 commit 6cd8c73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ func (peer *Peer) Ping(ctx context.Context) {
// Grab some random addresses from the DHT and add them to the queue for
// pinging.
addrsBySignatory := peer.dht.Addrs(peer.opts.Alpha)
for signatory, addr := range addrsBySignatory {
for _, addr := range addrsBySignatory {
signatory, err := addr.Signatory()
if err != nil {
peer.opts.Logger.Errorf("fetching signatory from address=%v: %v", addr, err)
return
}
select {
case <-ctx.Done():
return
Expand Down

0 comments on commit 6cd8c73

Please sign in to comment.