Skip to content

Commit

Permalink
move backup rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Aug 19, 2024
1 parent cd8721e commit db91f74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ function run() {
const res = _c;
const artifact = res.data.find((artifact) => !artifact.expired && artifact.name === baseReport);
if (!artifact) {
yield new Promise((resolve) => setTimeout(resolve, 500)); // avoid reaching the API rate limit
yield new Promise((resolve) => setTimeout(resolve, 900)); // avoid reaching the API rate limit
continue;
}
artifactId = artifact.id;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function run() {
);

if (!artifact) {
await new Promise((resolve) => setTimeout(resolve, 500)); // avoid reaching the API rate limit
await new Promise((resolve) => setTimeout(resolve, 900)); // avoid reaching the API rate limit

continue;
}
Expand Down

0 comments on commit db91f74

Please sign in to comment.