From 618a374a296e6a45c906a8ed281b9037fc999d07 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Thu, 30 Jan 2025 23:08:09 +0800 Subject: [PATCH] Refine --- main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.py b/main.py index 4185d1f..bb5dee8 100644 --- a/main.py +++ b/main.py @@ -174,9 +174,6 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool: # 必须用这个PlainTextResponse,不然每个key都有引号 @app.get("/runproject/", response_class = PlainTextResponse) async def fastapi_run_project(network: str) -> str: - # 初始化 Redis 连接 - # 用redis 来限制并发访问 - redis_client = redis.Redis(host="localhost", port=6379, db=0) lock_key = "exclusive_api_lock" timeout = 120 # 锁自动过期时间(秒)