Skip to content

Commit

Permalink
add logging suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Jan 31, 2023
1 parent 0b84e42 commit 253dcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/header/p2p/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (ex *Exchange[H]) Start(context.Context) error {
// and just need any peers in the peerTracker asap
go func(p peer.ID) {
err := ex.host.Connect(ex.ctx, peer.AddrInfo{ID: p})
if err != nil {
if err != nil && err != context.Canceled && err != context.DeadlineExceeded {
log.Debugw("err connecting to a bootstrap peer", "err", err, "peer", p)
}
}(p)
Expand Down

0 comments on commit 253dcd2

Please sign in to comment.