Skip to content

Commit

Permalink
dont back off when context canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
norwnd committed Oct 18, 2024
1 parent 7b6f069 commit 91dff34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spv/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,11 @@ func (s *Syncer) connectAndRunPeer(ctx context.Context, raddr string, persistent
if err != nil {
if !errors.Is(err, context.Canceled) {
log.Warnf("Unable to complete startup sync with peer %v: %v", raddr, err)
backoff = true
} else {
log.Infof("Lost peer %v", raddr)
}
rp.Disconnect(err)
backoff = true
return
}

Expand Down

0 comments on commit 91dff34

Please sign in to comment.