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

Implements throttling #210

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Implements throttling #210

wants to merge 4 commits into from

Conversation

samogot
Copy link
Contributor

@samogot samogot commented May 12, 2018

Rebase of #104 PR by @JonnyBGod
Tests added

index.js Outdated
@@ -321,6 +325,8 @@ Osmosis.prototype.resources = function () {
'requests: ' + this.requests +
' (' + this.queue.requests + ' queued), ' +

'tokens: ' + parseInt(this.throttle.getTokensRemaining()) + ', ' +
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change tokens: to throttled:

@samogot
Copy link
Contributor Author

samogot commented May 13, 2018

looks like something has changed in libxmljs and it no longer supports ES5 environment. Or I can't understand what this error is mean and how it relates too my changes)

JonnyBGod and others added 4 commits November 13, 2018 13:11
As was documented in command comments.

That allows to set global throttle as well as dynamically change
throttle command-wise
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.

3 participants