Skip to content

Commit

Permalink
add more randomness to fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Sep 16, 2024
1 parent f613ef9 commit 5f8934e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fetchers/youtube/scrape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getLivestreamId(env: Env) {

lastIdFetch = Date.now(); // do this here just in case something requests while below is executing
lastId = await realGetLivestreamId();
lastIdFetch = Date.now() + (10e3 * Math.random());
lastIdFetch = Date.now() + (30e3 * Math.random());

return lastId;
}
Expand Down

0 comments on commit 5f8934e

Please sign in to comment.