Browse Source

produce plan detail timeout

wangyunpeng 5 days ago
parent
commit
3963063372

+ 3 - 3
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/remote/aigc/AIGCProducePlanDetailService.java

@@ -1,9 +1,8 @@
 package com.tzld.longarticle.recommend.server.remote.aigc;
 
 import com.alibaba.fastjson.JSONObject;
-import com.tzld.longarticle.recommend.server.common.HttpPoolFactory;
-import com.tzld.longarticle.recommend.server.model.dto.Content;
 import com.tzld.longarticle.recommend.server.model.vo.aigc.ProducePlanDetailVO;
+import com.tzld.longarticle.recommend.server.util.HttpClientFactory;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.HttpEntity;
 import org.apache.http.StatusLine;
@@ -22,7 +21,8 @@ import java.util.Objects;
 @Slf4j
 public class AIGCProducePlanDetailService {
 
-    private final CloseableHttpClient client = HttpPoolFactory.aigcPool();
+    private final CloseableHttpClient client =
+            HttpClientFactory.create(10000, 180000, 200, 200, 0, 10000);
 
     public ProducePlanDetailVO articleGetProducePlanDetail(String planId) {
         int retryTimes = 2;