Skip to content

Commit

Permalink
feat: added wait to stop the rate limiter being naughty
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Mar 3, 2024
1 parent 3824da6 commit 3ebf06d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kube_cache/funny.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ fetch(kubes)
.then(async (data) => {
for (let i = 0; i < data.length; i++) {
for (let j = 0; j < i; j++) {
await new Promise((resolve) => setTimeout(resolve, 10000));
const url =
"https://hack.djpiper28.co.uk/cache/kubeRecipeByIds/" +
data[i].id +
Expand Down

0 comments on commit 3ebf06d

Please sign in to comment.