-
Notifications
You must be signed in to change notification settings - Fork 0
fix warnings #233
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
fix warnings #233
Conversation
Caution Review failedThe pull request is closed. WalkthroughThis change removes several module attribute constants from the Changes
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
a2f4b1d
to
3e6ae93
Compare
3e6ae93
to
5000120
Compare
Merge activity
|
TL;DR
Removed unused rate limit configuration and country batch size constants from the UnsplashImageRefresher worker.
What changed?
@production_rate_limit
(5000 requests per hour)@req_buffer_percent
(0.8 or 80%)@requests_per_location
(1 request per location)@max_countries_per_batch
constant (27 countries)@max_cities_per_batch
constant (200 cities)How to test?
Verify that the UnsplashImageRefresher worker still functions correctly by:
Why make this change?
These constants were no longer being used in the codebase, making them unnecessary. Removing them improves code clarity by eliminating unused variables. The worker likely evolved to handle rate limiting differently or these parameters were moved elsewhere in the application.
Summary by CodeRabbit