Skip to content

Commit

Permalink
fix: ratelimiter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dylandepass committed Feb 3, 2025
1 parent acc4c46 commit c277872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helix-shared-process-queue/src/process-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default async function processQueue(
? rateLimitOptions
: { maxConcurrent: rateLimitOptions || 8 };

const waitForToken = (limit && interval != null)
const waitForToken = (limit > 0 && interval > 0)
? createRateLimiter(limit, interval, abortSignal)
: async () => {};

Expand Down

0 comments on commit c277872

Please sign in to comment.