From 4f9c0aa1f74c453c3513b6088f53b167c2f91713 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Sat, 20 Aug 2022 02:39:02 +0300 Subject: [PATCH] add async queue --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index 1e58c05..3f70fc6 100644 --- a/app/main.py +++ b/app/main.py @@ -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: