aishek / axios-rate-limit

Rate limit for axios
MIT License
237 stars 35 forks source link

maxRequests only the first loop? #63

Open mitch85 opened 8 months ago

mitch85 commented 8 months ago

Axios makes 2 requests in parallel, but after 30 seconds, it only makes one request at a time instead of two.

const axiosWithRateLimit = rateLimit(axios_update.create(), { maxRequests: 2, perMilliseconds: 30000 })