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

Added condition before fetching IP from ipinfo.io to avoid the rate-limiting issue #91

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

prem-k-r
Copy link
Contributor

Ensured that the IP is only fetched from ipinfo.io if savedLocation is null.
This involves adding a condition to check if savedLocation exists before making the fetch request to ipinfo.io.
so, fetch to ipinfo.io will only happen if the user hasn't provided a location.

Copy link
Contributor

@itz-rj-here itz-rj-here left a comment

Choose a reason for hiding this comment

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

Great Job

@XengShi XengShi merged commit 01a4756 into XengShi:main Oct 22, 2024
@prem-k-r prem-k-r deleted the patch-4 branch October 23, 2024 12:50
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