Replaced deprecated `asyncio.wait([])` with `asyncio.gather(*[])`.
This commit is contained in:
parent
cf91ab90df
commit
bce2fdee25
|
@ -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)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue