Node: Arbitrum poller failling without details (#1836)
* Node: Arbitrum poller failling without details Change-Id: Id067d0be18a7c391ef90a82cc78f0684c72ab2ad * Add a comment. Change-Id: I4d2ef2ea44febc2a1462ac22a3a3e977b09e6545
This commit is contained in:
parent
a974bf762e
commit
7d53c68aad
|
@ -67,10 +67,14 @@ func (b *BlockPollConnector) run(ctx context.Context) error {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
logger.Error("polling encountered an error", zap.Error(err))
|
logger.Error("polling encountered an error", zap.Error(err))
|
||||||
|
|
||||||
|
// Wait an interval before trying again. We stay in this loop so that we
|
||||||
|
// try up to three times before causing the watcher to restart.
|
||||||
|
time.Sleep(b.Delay)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.errFeed.Send("polling encountered an error")
|
b.errFeed.Send(fmt.Sprint("polling encountered an error: ", err))
|
||||||
}
|
}
|
||||||
timer.Reset(b.Delay)
|
timer.Reset(b.Delay)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue