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
5e3676cd5e
commit
563f5ade69
@ -97,10 +97,10 @@ async def worker() -> None:
|
||||
Bot.set_current(dispatcher.bot)
|
||||
|
||||
while True:
|
||||
await asyncio.sleep(1)
|
||||
update = await queue.get()
|
||||
logger.warning(f"Get update {update}")
|
||||
await dispatcher.process_update(update)
|
||||
await asyncio.sleep(1)
|
||||
|
||||
|
||||
async def create_app() -> web.Application:
|
||||
|
Loading…
x
Reference in New Issue
Block a user