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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user