Replaced deprecated `asyncio.wait([])` with `asyncio.gather(*[])`.

This commit is contained in:
Fabio Manganiello 2023-03-26 23:15:53 +02:00
parent cf91ab90df
commit bce2fdee25
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ class NtfyPlugin(AsyncRunnablePlugin):
)
async def listen(self):
return await asyncio.wait(
[
return await asyncio.gather(
*[
self._get_ws_handler(f'{self._ws_url}/{sub}/ws')
for sub in set(self._subscriptions)
]