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

Return future from commit_offsets_async #1560

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

ekimekim
Copy link
Contributor

@ekimekim ekimekim commented Jul 30, 2018

The callers of commit_offsets_async seem to imply it should return a future
(eg. future = commit_offsets_async(...)), but it does not. This causes a mismatch
between KafkaConsumer.commit_async()'s documentation and its behaviour.

This fixes that by returning futures that were already available,
we just had to actually return them.

Fixes #1559


This change is Reviewable

The callers of commit_offsets_async seem to imply it should return a future
(eg. future = commit_offsets_async(...)), but it does not. This causes a mismatch
between KafkaConsumer.commit_async()'s documentation and its behaviour.

This fixes that by returning futures that were already available,
we just had to actually return them.
@dpkp dpkp merged commit 5a04bc7 into dpkp:master Aug 31, 2018
@dpkp
Copy link
Owner

dpkp commented Aug 31, 2018

Thanks!

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.

KafkaConsumer is documented as returning a future, but returns None
2 participants