Browse Source

feat: update midjourney task info update timeout

1808837298@qq.com 1 năm trước cách đây
mục cha
commit
234e39ddeb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      controller/midjourney.go

+ 1 - 1
controller/midjourney.go

@@ -86,7 +86,7 @@ func UpdateMidjourneyTaskBulk() {
 				continue
 			}
 			// 设置超时时间
-			timeout := time.Second * 5
+			timeout := time.Second * 15
 			ctx, cancel := context.WithTimeout(context.Background(), timeout)
 			// 使用带有超时的 context 创建新的请求
 			req = req.WithContext(ctx)