Skip to content

Commit c89553d

Browse files
committed
can't await coroutines directly anymore; must use tasks
1 parent 2fe5147 commit c89553d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sign_client/sign_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async def _await_calls(self, handle, headers, objects):
255255
# prepare a list of calls to make * Note: calls are prepared by using call
256256
# syntax (eg, func() and not func), but they will not be run until executed by the wait
257257
# split into batches of self.bach_size to avoid taking too much memory
258-
calls = [handle(sem, o, headers, session) for o in objects]
258+
calls = [asyncio.create_task(handle(sem, o, headers, session)) for o in objects]
259259
await asyncio.wait(calls)
260260

261261
async def _get_user(self, semaphore, user_id, header, session):

0 commit comments

Comments
 (0)