Removing deprecated loop=loop removed in 3.10 https://docs.python.org/3/library/asyncio-task.html

This commit is contained in:
DarkFeather 2022-10-25 13:22:16 -05:00
parent 55cc01e61b
commit 757a763d50
No known key found for this signature in database
GPG key ID: 1CC1E3F4ED06F296

View file

@ -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()