mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add async queue
This commit is contained in:
parent
d9b4556795
commit
4f9c0aa1f7
@ -98,6 +98,7 @@ async def worker() -> None:
|
||||
while True:
|
||||
update = await queue.get()
|
||||
await dispatcher.process_update(update)
|
||||
await asyncio.sleep(1)
|
||||
|
||||
|
||||
async def create_app() -> web.Application:
|
||||
|
Loading…
x
Reference in New Issue
Block a user