Update rate-limiter.ts
This commit is contained in:
parent
27a8fd0c3c
commit
de06b13deb
@ -89,7 +89,6 @@ export function getRateLimiter(
|
|||||||
token: string,
|
token: string,
|
||||||
plan?: string
|
plan?: string
|
||||||
) {
|
) {
|
||||||
console.log(`${mode}-${plan}`);
|
|
||||||
if (token.includes("a01ccae") || token.includes("6254cf9")) {
|
if (token.includes("a01ccae") || token.includes("6254cf9")) {
|
||||||
return testSuiteRateLimiter;
|
return testSuiteRateLimiter;
|
||||||
}
|
}
|
||||||
@ -101,6 +100,5 @@ export function getRateLimiter(
|
|||||||
const points =
|
const points =
|
||||||
rateLimitConfig[planKey] || rateLimitConfig.default || rateLimitConfig; // 5
|
rateLimitConfig[planKey] || rateLimitConfig.default || rateLimitConfig; // 5
|
||||||
|
|
||||||
console.log(`${mode}-${planKey}`);
|
|
||||||
return createRateLimiter(`${mode}-${planKey}`, points);
|
return createRateLimiter(`${mode}-${planKey}`, points);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user