Skip to content

Commit

Permalink
Merge pull request #38 from pilksoc/logging
Browse files Browse the repository at this point in the history
feat: added wait to stop the rate limiter being naughty
  • Loading branch information
djpiper28 authored Mar 3, 2024
2 parents 1f5f31f + 3ebf06d commit 1832a4d
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 1832a4d

Please sign in to comment.