Skip to content

Commit

Permalink
Change twitch cutoff to 50 remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Dec 16, 2023
1 parent 154f35b commit a49e97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/(live-statuses)/twitch/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const GET = (async ({platform, url}) => {

const msUntilReset = Math.max((Number(reset) * 1000) - Date.now(), 0);

if(Number(remaining) < 15) {
if(Number(remaining) < 50) {
// If we are low on remaining requests, wait until 1s after the reset in the future.
fastCache.lastFetch = Date.now() + msUntilReset - cacheTime + 1e3;
}
Expand Down

0 comments on commit a49e97d

Please sign in to comment.