fix rate limit check never ends (#13994)

This commit is contained in:
anatawa12 2024-06-15 08:42:13 +09:00 committed by GitHub
parent c51347d78b
commit 220e112c83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ export class RateLimiterService {
return reject({ code: 'BRIEF_REQUEST_INTERVAL', info });
} else {
if (hasLongTermLimit) {
return max;
return max.then(ok, reject);
} else {
return ok();
}