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:
bruce-riley 2022-11-02 08:24:58 -05:00 committed by GitHub
parent a974bf762e
commit 7d53c68aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -67,10 +67,14 @@ func (b *BlockPollConnector) run(ctx context.Context) error {
break
}
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 {
b.errFeed.Send("polling encountered an error")
b.errFeed.Send(fmt.Sprint("polling encountered an error: ", err))
}
timer.Reset(b.Delay)
}