Skip to content

Commit

Permalink
Fix consumer fetcher for python3.9 (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutradda committed Oct 27, 2020
1 parent 48f5df5 commit 1d2e02e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/python3.9-fix.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix consumer fetcher for python3.9
4 changes: 3 additions & 1 deletion aiokafka/consumer/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,9 @@ def on_done(fut, self=self):
other_futs.append(fut)

done_set, _ = await asyncio.wait(
chain(self._pending_tasks, other_futs, resume_futures),
set(
chain(self._pending_tasks, other_futs, resume_futures)
),
timeout=timeout,
return_when=asyncio.FIRST_COMPLETED)

Expand Down

0 comments on commit 1d2e02e

Please sign in to comment.