From 5e3676cd5e65bc65b14f859b45eec50374353239 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Sat, 20 Aug 2022 02:45:23 +0300 Subject: [PATCH] add async queue --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 86f2e65..a11200c 100644 --- a/app/main.py +++ b/app/main.py @@ -86,8 +86,9 @@ async def webhook(request: web.Request) -> web.Response: """ data = await request.json() tg_update = Update(**data) - queue.put_nowait(tg_update) logger.info(tg_update) + queue.put_nowait(tg_update) + logger.info('Put in queue') return web.Response(status=HTTPStatus.ACCEPTED)