소스 검색

增加线程数

xueyiming 3 달 전
부모
커밋
0c9bb39b67
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/component/ThreadPools.java

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/component/ThreadPools.java

@@ -15,5 +15,5 @@ public class ThreadPools {
     public static final ThreadPoolExecutor newMatchCrawlerVideoPoolExecutor = (ThreadPoolExecutor) Executors.newFixedThreadPool(20);
 
     // 定义一个线程池,设置消费线程的数量
-    public static final ThreadPoolExecutor newUploadCrawlerVideoPoolExecutor = (ThreadPoolExecutor) Executors.newFixedThreadPool(20);
+    public static final ThreadPoolExecutor newUploadCrawlerVideoPoolExecutor = (ThreadPoolExecutor) Executors.newFixedThreadPool(40);
 }