2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-05-01 04:47:45 +00:00

Fix attempt to await non-async get_nowait.

This commit is contained in:
Jarrod Johnson
2026-04-29 11:29:21 -04:00
parent 5064ac80b9
commit 78e5301ff8
2 changed files with 4 additions and 2 deletions

View File

@@ -433,9 +433,10 @@ async def perform_requests(operator, nodes, element, cfg, inputdata, realop):
try:
# drain queue if a thread put something on the queue and died
while True:
datum = await resultdata.get_nowait()
datum = resultdata.get_nowait()
if datum != 'Done':
yield datum
await asyncio.sleep(0)
except asyncio.QueueEmpty:
pass

View File

@@ -294,9 +294,10 @@ async def perform_requests(operator, nodes, element, cfg, inputdata, realop):
try:
# drain queue if a thread put something on the queue and died
while True:
datum = await resultdata.get_nowait()
datum = resultdata.get_nowait()
if datum != 'Done':
yield datum
await asyncio.sleep(0)
except asyncio.QueueEmpty:
pass