fix rate limit check never ends
This commit is contained in:
parent
c51347d78b
commit
03c2919b69
|
@ -57,7 +57,7 @@ export class RateLimiterService {
|
||||||
return reject({ code: 'BRIEF_REQUEST_INTERVAL', info });
|
return reject({ code: 'BRIEF_REQUEST_INTERVAL', info });
|
||||||
} else {
|
} else {
|
||||||
if (hasLongTermLimit) {
|
if (hasLongTermLimit) {
|
||||||
return max;
|
return max.then(ok, reject);
|
||||||
} else {
|
} else {
|
||||||
return ok();
|
return ok();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue