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

Fix bug that can prevent fast-polling clients from ever getting data again #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MatthewMeacham
Copy link

Fixes a bug in the Java client where a fast-polling client (i.e. more frequently than the 4900ms/9900ms rate-limiting for anon/authed, respectively) could result in never making a call to the OpenSky API again.

The issue here was that we would always update lastRequestTime even if the caller wasn't actually able to issue a call, resulting in never being able to issue a call after the first time.

@MatthewMeacham
Copy link
Author

@fixje Would be great to get your eyes on this!

@MatthewMeacham
Copy link
Author

@fabland @marataj @masorx maybe for review?

@marataj
Copy link
Contributor

marataj commented Apr 25, 2023

@MatthewMeacham, I'd rather someone else to do the review, I don't know java very well

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.

2 participants