Skip to content

Commit

Permalink
fix: ref delay for rate limited requests (#7239)
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Jan 10, 2022
1 parent b2dfb2e commit ed0cfd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest/src/lib/handlers/SequentialHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class SequentialHandler {
// Set RateLimitData based on the route-specific limit
limit = this.limit;
timeout = this.timeToReset;
delay = sleep(timeout, undefined, { ref: false });
delay = sleep(timeout);
}
const rateLimitData: RateLimitData = {
timeToReset: timeout,
Expand Down

0 comments on commit ed0cfd9

Please sign in to comment.