mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-04 18:10:56 +01:00
Minimum remainingRateLimit of 10
This commit is contained in:
parent
2ce765c36f
commit
cd00dc853a
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue