From 202a7024a7dae0201123f4b4ff22905e35b2daab Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 7 Nov 2023 20:45:14 +0300 Subject: [PATCH] =?UTF-8?q?bug/incorrect-aiohttp-app-init:=20=D0=9F=D1=80?= =?UTF-8?q?=D0=B8=20=D0=B1=D0=B0=D0=B7=D0=BE=D0=B2=D0=BE=D0=BC=20=D0=BA?= =?UTF-8?q?=D0=BB=D0=B0=D1=81=D1=81=D0=B5=20AIOHttpMainLoop=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B8=D1=81=D1=85=D0=BE=D0=B4=D0=B8=D0=BB=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D0=BF=D1=80=D0=B8=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D1=82=D0=B5.=20=D0=A1=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=20=D0=BD=D0=B5=20=D0=BC=D0=BE=D0=B3=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=B4=D0=B0=D0=BB=20=D0=B2=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=D0=B5=20AIOHttpMainLoop.get=5Fdb=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D1=87=D0=BA=D0=B5=20self.app.on=5Fclea?= =?UTF-8?q?nup.append(self.close=5Fdb),=20=D1=82=D0=BA=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=8A=D0=B5=D0=BA=D1=82=D0=B0=20=D0=B0=D0=BF=D0=BF=D0=B0=20?= =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D0=BD=D0=B5=20=D1=81=D1=83=D1=89=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B2=D1=83=D0=B5=D1=82.=20=D0=9F=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B8=D1=82=D0=B8?= =?UTF-8?q?=D0=B2=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smart_kit/start_points/main_loop_async_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_kit/start_points/main_loop_async_http.py b/smart_kit/start_points/main_loop_async_http.py index 46fa75ca..0ef9664e 100644 --- a/smart_kit/start_points/main_loop_async_http.py +++ b/smart_kit/start_points/main_loop_async_http.py @@ -18,8 +18,8 @@ class AIOHttpMainLoop(BaseHttpMainLoop): def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) self.app = aiohttp.web.Application() + super().__init__(*args, **kwargs) self.app.add_routes([aiohttp.web.route('*', '/health', self.get_health_check)]) self.app.add_routes([aiohttp.web.route('*', '/{tail:.*}', self.iterate)])