소스 검색

减少线程数

yumeng 5 년 전
부모
커밋
0dc073f4a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouAppListJob.java

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouAppListJob.java

@@ -24,7 +24,7 @@ public class KuaishouAppListJob implements Job {
     @Autowired
     private CtopOauthTokenMapper oauthTokenMapper;
 
-    static ExecutorService executorService = Executors.newFixedThreadPool(3);
+    static ExecutorService executorService = Executors.newFixedThreadPool(2);
 
     @Override
     public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {