Removing deprecated loop=loop removed in 3.10 https://docs.python.org/3/library/asyncio-task.html
This commit is contained in:
parent
55cc01e61b
commit
757a763d50
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ def request_many(requests: typing.List[Request]) -> typing.Dict[str, Response]:
|
|||
awaits = []
|
||||
for request in requests:
|
||||
awaits.append(_request(request))
|
||||
task = asyncio.wait(awaits, loop=loop, timeout=5)
|
||||
task = asyncio.wait(awaits, timeout=5)
|
||||
loop.run_until_complete(task)
|
||||
loop.close()
|
||||
|
||||
|
|
Loading…
Reference in a new issue