Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

fix issue 358 - #370

Merged
jeremylow merged 1 commit into
masterfrom
fix/issue358
Jul 16, 2016
Merged

fix issue 358#370
jeremylow merged 1 commit into
masterfrom
fix/issue358

Conversation

@jeremylow

@jeremylow jeremylow commented Jul 16, 2016

Copy link
Copy Markdown
Collaborator

Adds ability to set rate limit endpoints even if api.sleep_on_rate_limit is False

Basically, if you instantiate an Api instance with sleep_on_rate_limit=False, then previously we would not keep track of the data returned in the headers that pertained to the rate limit. My thinking is that there could be a use case where you don't want the Api to sleep for 15 minutes (the default behavior when you're rate limited), but would rather have the program do something else.

This change has the Api keep track of the rate limit status of any endpoint that the user specifically calls, but won't, on its own, go out and obtain the full rate limit endpoint and doesn't force the user into the default sleeping behavior.


This change is Reviewable

@bear

bear commented Jul 16, 2016

Copy link
Copy Markdown
Owner

Reviewed 3 of 3 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bear

bear commented Jul 16, 2016

Copy link
Copy Markdown
Owner

👍 - I like that this allows a saner default for this one use case

@jeremylow
jeremylow merged commit 82304af into master Jul 16, 2016
@jeremylow
jeremylow deleted the fix/issue358 branch July 16, 2016 12:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants