fix: 将用户脚本流式响应的等待时间从15秒增加到30秒
增加等待时间以避免过于频繁的请求导致服务器压力过大
This commit is contained in:
@@ -121,6 +121,6 @@ async def stream_user_scripts(user_id: str, request: Request):
|
||||
yield f"data: {json_error}\n\n"
|
||||
|
||||
# 6. 等待 15 秒
|
||||
await asyncio.sleep(15)
|
||||
await asyncio.sleep(30)
|
||||
|
||||
return StreamingResponse(event_generator(), media_type="text/event-stream")
|
||||
|
||||
Reference in New Issue
Block a user