Skip to content

Commit

Permalink
Fix type in manual commit example (#833)
Browse files Browse the repository at this point in the history
Removes an unpaired parentheses and rename throwaway variable.
  • Loading branch information
mackenney committed May 17, 2022
1 parent b195c3e commit 91ed3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/manual_commit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Consumer:
await consumer.start()
# we want to consume 10 messages from "foobar" topic
# and commit after that
for i in range(10):
msg = await (consumer.getone()
for _ in range(10):
msg = await consumer.getone()
await consumer.commit()
await consumer.stop()
Expand Down

0 comments on commit 91ed3db

Please sign in to comment.