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

Add rate limiting using Reddit RateLimit API response headers #71

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

Conversation

jfl88
Copy link

@jfl88 jfl88 commented Jan 5, 2025

I took @braboobssiere's development and also applied it to the handle function as well.

With this change all functions (search, edit, delete) will look at the RateLimit feedback from Reddit API and use it to set the timeout function period. When the response from Reddit is 5 queries remaining or less, it will wait for the reset period to expire before executing again.

@jfl88 jfl88 mentioned this pull request Jan 5, 2025
@jfl88
Copy link
Author

jfl88 commented Jan 5, 2025

Note: this pull request doesn't update version information or anything, I will leave that up to @j0be to decide how to handle any versioning or repo maintenance.

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.

1 participant