Skip to content

Commit

Permalink
Fail x2 on no coordinator connection
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Dec 1, 2024
1 parent 9caf45a commit 5a42dc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ func (w *Worker) Start(done chan struct{}) {
default:
cord, err := newCoordinatorConnection(remoteAddr, w.conf.Worker, w.address, w.log)
if err != nil {
w.log.Warn().Err(err).Msgf("no connection: %v. Retrying in %v", remoteAddr, retry.Time())
retry.Fail()
onRetryFail(err)
continue
}
cord.SetErrorHandler(onRetryFail)
Expand Down

0 comments on commit 5a42dc9

Please sign in to comment.