Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slow down on error & Expose rateLimitInstance #31

Closed
wants to merge 4 commits into from

Conversation

bifot
Copy link

@bifot bifot commented Oct 8, 2020

  1. Fix Slows down on error #29
  2. Possibility to check queue size for logging
  3. Possibility to force priority requests
const api = rateLimit(axios.create(), ...);

setInterval(() => {
  console.log(`api has ${api.rateLimitInstance.queue.length} tasks in the queue`);
}, 1000);

@bifot bifot changed the title Expose rateLimitInstance Fixed slow down on error & Expose rateLimitInstance Oct 8, 2020
@bifot bifot changed the title Fixed slow down on error & Expose rateLimitInstance Fix slow down on error & Expose rateLimitInstance Oct 8, 2020
@bifot bifot closed this Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slows down on error
1 participant