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

Dont recheck version if api_versions data is already cached #1738

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 14, 2019

I noticed during local testing that version probing was happening twice when connecting to newer broker versions. This was because we call check_version() once explicitly, and then again implicitly within get_api_versions(). But once we have _api_versions data cached, we can just return it and avoid probing versions a second time.


This change is Reviewable

@dpkp dpkp requested a review from jeffwidman March 14, 2019 02:00
@jeffwidman jeffwidman merged commit 1cd505d into master Mar 14, 2019
@jeffwidman jeffwidman deleted the get_api_versions_fix branch March 14, 2019 04:10
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