Skip to content

Commit 91ed3db

Browse files
authored
Fix type in manual commit example (#833)
Removes an unpaired parentheses and rename throwaway variable.
1 parent b195c3e commit 91ed3db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/examples/manual_commit.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Consumer:
3535
await consumer.start()
3636
# we want to consume 10 messages from "foobar" topic
3737
# and commit after that
38-
for i in range(10):
39-
msg = await (consumer.getone()
38+
for _ in range(10):
39+
msg = await consumer.getone()
4040
await consumer.commit()
4141
4242
await consumer.stop()

0 commit comments

Comments
 (0)