From ea33fc270d1d9fdd0e36d93fa7a4b6382660adc6 Mon Sep 17 00:00:00 2001 From: xinzish Date: Fri, 12 Dec 2025 18:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dopen=5Fproject=20conn?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 10eb2f1..bc8d49e 100644 --- a/main.py +++ b/main.py @@ -125,6 +125,8 @@ async def lifespan(app: FastAPI): await tsdb.open() await pgdb.open() + open_project(project_info.name) + yield # 清理资源 tsdb.close()