Skip to content

Commit

Permalink
Increase errCount in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo authored and dennis-tra committed Aug 17, 2022
1 parent e4882da commit 3a36c40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/client/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (h *Host) Bootstrap(ctx context.Context) error {
log.WithField("remoteID", util.FmtPeerID(bp.ID)).Info("Connecting to bootstrap peer...")
if err := h.Connect(ctx, bp); err != nil {
log.Warn("Error connecting to bootstrap peer", bp)
errCount++
lastErr = errors.Wrap(err, "connecting to bootstrap peer")
}
}
Expand Down

0 comments on commit 3a36c40

Please sign in to comment.