Skip to content

Commit b9a9a4b

Browse files
committed
fix examples
1 parent d7bffd8 commit b9a9a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/topic/reader_async_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def process_batch(batch):
123123
# no reason work with expired batch
124124
# go read next - good batch
125125
return
126-
await _process(message)
127-
await reader.commit(batch)
126+
_process(message)
127+
reader.commit(batch)
128128

129129
async for batch in reader.batches():
130130
process_batch(batch)

0 commit comments

Comments
 (0)