mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Fail x2 on no coordinator connection
This commit is contained in:
parent
9caf45af78
commit
5a42dc9857
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue