only call processRateLimitedPaths when processing is false

This commit is contained in:
ITOH
2021-04-13 12:50:03 +02:00
parent 81d34c14d2
commit 9b11d390e9
+1 -1
View File
@@ -56,7 +56,7 @@ export function processRequestHeaders(url: string, headers: Headers) {
}
}
if (ratelimited && rest.processingRateLimitedPaths) {
if (ratelimited && !rest.processingRateLimitedPaths) {
rest.processRateLimitedPaths();
}
return ratelimited ? bucketId : undefined;