Skip to content

Commit

Permalink
chore: bump wait to 5s to avoid secondary rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 29, 2024
1 parent 73021cf commit 971c080
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export async function listLabelsForRepo(context: Context): Promise<Label[]> {
});

if (res.length > 0) {
await new Promise((resolve) => setTimeout(resolve, 1000));
// we'll hit a secondary rate limit if using the runner token
await new Promise((resolve) => setTimeout(resolve, 5000));
return res;
}

Expand Down

0 comments on commit 971c080

Please sign in to comment.