Skip to content

Commit 5a42dc9

Browse files
committed
Fail x2 on no coordinator connection
1 parent 9caf45a commit 5a42dc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/worker/worker.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ func (w *Worker) Start(done chan struct{}) {
115115
default:
116116
cord, err := newCoordinatorConnection(remoteAddr, w.conf.Worker, w.address, w.log)
117117
if err != nil {
118-
w.log.Warn().Err(err).Msgf("no connection: %v. Retrying in %v", remoteAddr, retry.Time())
119-
retry.Fail()
118+
onRetryFail(err)
120119
continue
121120
}
122121
cord.SetErrorHandler(onRetryFail)

0 commit comments

Comments
 (0)