-
Notifications
You must be signed in to change notification settings - Fork 2
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
Promise issue #26
Comments
Sorry I missed your question earlier. Hope you were able to solve the problem already, if not, find the code I'd use below. Using 100 promises seems to be an overkill to me, 1 promise would do the same job. The trouble with your code was that the Also, the Please let me know if this works for you, so that we can close this issue.
|
No follow-up in 2 months, closing the issue, ping me if you have questions. |
I need to execute 100 promises while respecting a leaky bucket limit, this is the code I have so far:
I set the bucket up to have a size of 35 with a limit of 2 calls per second, however when I run this code, every promise resolves at the same time, here's what my console looks like:
I'm obviously doing something wrong here but I'm not sure what I'm missing, any help would be greatly appreciated because this looks to be the only node package which supports a true leaky bucket limit with the ability to store state for multiple entities in Redis.
The text was updated successfully, but these errors were encountered: