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 metadata requests on later versions #1132

Merged
merged 1 commit into from
Jul 19, 2018
Merged

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Jul 16, 2018

If the set of Topics is an empty array, we don't need to put it in the
request or we'll just get an empty set of data back which is useless.
As far as I can tell the nil check was for safety, but len(nil) is
already safe and the boolean logic was wrong anyway.

Thanks to @Preylien for figuring this one out.

Fixes #1130.

If the set of Topics is an empty array, we don't need to put it in the
request or we'll just get an empty set of data back which is useless.
As far as I can tell the nil check was for safety, but len(nil) is
already safe and the boolean logic was wrong anyway.
@varun06
Copy link
Contributor

varun06 commented Jul 17, 2018

👍

@eapache eapache merged commit 2211465 into master Jul 19, 2018
@eapache eapache deleted the fix-metadata-v1-empty branch July 19, 2018 13:34
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