Skip to content

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.
@ekimekim ekimekim force-pushed the fix-missing-commit-future branch from 43ae0f4 to a0e0677 Compare July 30, 2018 21:18
@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