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 untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

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