Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Commit 8f4265d

Browse files
committed
feat: Reduce min request spacing floor in RequestQueue
1 parent 5c21bad commit 8f4265d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/request-queue-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class RequestQueue<T> {
4949
requestTimeout: number = 5000
5050
) {
5151
this.rateLimiter = new TokenBucket(maxRequestsPerInterval, intervalMs);
52-
this.minRequestSpacing = Math.max(250, Math.floor(intervalMs / maxRequestsPerInterval));
52+
this.minRequestSpacing = Math.max(10, Math.floor(intervalMs / maxRequestsPerInterval)); // Use a smaller floor
5353
this.env = env;
5454
this.requestTimeout = requestTimeout;
5555
}

0 commit comments

Comments
 (0)