Commit 38377e10 by 1808837298@qq.com

feat: update midjourney task info update timeout

parent e1b80d60
...@@ -86,7 +86,7 @@ func UpdateMidjourneyTaskBulk() { ...@@ -86,7 +86,7 @@ func UpdateMidjourneyTaskBulk() {
continue continue
} }
// 设置超时时间 // 设置超时时间
timeout := time.Second * 5 timeout := time.Second * 15
ctx, cancel := context.WithTimeout(context.Background(), timeout) ctx, cancel := context.WithTimeout(context.Background(), timeout)
// 使用带有超时的 context 创建新的请求 // 使用带有超时的 context 创建新的请求
req = req.WithContext(ctx) req = req.WithContext(ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment