Fail x2 on no coordinator connection

This commit is contained in:
Sergey Stepanov 2024-12-01 20:26:29 +03:00
parent 9caf45af78
commit 5a42dc9857
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B

View file

@ -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)