Skip to content

Commit

Permalink
Delay between checks (#847)
Browse files Browse the repository at this point in the history
Sometimes when multiple deployments exist for a single chain, RPC with
lower limits (free tier or lower capacity) results in a timeout.

To avoid this issue, we are adding a delay of 1 sec (which can be
increased later, if found that this delay is not enough) between each
file is checked.
  • Loading branch information
remedcu authored Oct 28, 2024
1 parent d053467 commit 1620649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Please fill the following form:
Provide the Chain ID (Only 1 chain id per PR).
- Chain_ID:

Provide RPC URL for the chain (should be able to query atleast 10 requests per minute for automatic PR check).
Provide RPC URL for the chain (should be able to query atleast 3+ requests per second for automatic PR check).
- RPC_URL:

Relevant information:
Expand Down
2 changes: 2 additions & 0 deletions scripts/review/verifyDeployment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { promises as fs } from 'node:fs';
import path from 'node:path';
import util from 'node:util';
import { setTimeout as sleep } from 'node:timers/promises';

import { ethers } from 'ethers';

Expand Down Expand Up @@ -84,6 +85,7 @@ async function main() {

debug(`• ${deployment} deployment OK`);
}
await sleep(1000);
}
}

Expand Down

0 comments on commit 1620649

Please sign in to comment.