From cd00dc853aa34bb632aec21cc3138afe5225bff0 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Fri, 16 Sep 2022 20:24:49 -0400 Subject: [PATCH] Minimum remainingRateLimit of 10 --- src/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch.ts b/src/fetch.ts index 8ccddb4..7ec50ce 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -136,7 +136,7 @@ export const twitterFetch = async ( ); console.log(`Remaining rate limit: ${remainingRateLimit} requests`); /* Running out of requests within our rate limit, let's purge the cache */ - if (remainingRateLimit < 20) { + if (remainingRateLimit < 10) { console.log(`Purging token on this edge due to low rate limit remaining`); event && event.waitUntil(