Skip to content

Commit

Permalink
fix issue with blocking call
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trottier committed Feb 11, 2020
1 parent 2313022 commit 52d2e07
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ func (r *rtns) Bootstrap(peers []libp2p.PeerAddrInfo) {
if nPeers := len(peers); i < nPeers/2 {
fmt.Printf("only connected to %d bootstrap peers out of %d\n", i, nPeers)
}

err := r.d.Bootstrap(cctx)
if err != nil {
fmt.Println(err)
return
}
// with changes to the dht library, this never returns an erro
r.d.Bootstrap(cctx)
}

0 comments on commit 52d2e07

Please sign in to comment.