main
zc 1 month ago
parent d90e0f8fe7
commit d60836a1f4
  1. 4
      app/__init__.py
  2. 2
      app/api/chat/ai/chat_service.py

@ -73,8 +73,8 @@ async def lifespan(app: FastAPI):
socket_connect_timeout=5,
socket_keepalive=True,
retry_on_timeout=True,
# 连接池参数(Redis默认有连接池,这里调整)
max_connections=100, # Redis连接池最大连接数
# 连接池参数
max_connections=128, # Redis连接池最大连接数
)
await app.state.redis_client.ping()

@ -598,8 +598,6 @@ async def get_scenic_detail_data(request: Request, id: int) -> dict:
cyjcpt_bd.zhly_scenic_basic t3 ON t2.video_scenic_id = t3.id
WHERE
t3.id = %s
GROUP BY
t3.`name`, t3.realtime_load_capacity
"""
await cur.execute(query, (id,))
row = await cur.fetchone()

Loading…
Cancel
Save