Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Sep 24, 2024
1 parent 4ae703d commit 0bb83ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relayer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export async function runRelayer(_logger: winston.Logger, baseSigner: Signer): P
const ready = await relayer.update();
const activeRelayer = redis ? await redis.get(botIdentifier) : undefined;

// If there is another active relayer, allow up to 60 seconds for this instance to be ready,
// then proceed unconditionally to protect against any RPC outages blocking the relayer.
// If there is another active relayer, allow up to 120 seconds for this instance to be ready.
// If this instance can't update, throw an error (for now).
if (!ready && activeRelayer) {
if (run * pollingDelay < 120) {
const runTime = Math.round((performance.now() - tLoopStart) / 1000);
Expand Down

0 comments on commit 0bb83ce

Please sign in to comment.