소스 검색

修改线程池

xueyiming 11 달 전
부모
커밋
411ab04cc0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CoreServiceImpl.java

@@ -415,7 +415,7 @@ public class CoreServiceImpl implements CoreService {
             CountDownLatch latch = new CountDownLatch(threadSize);
             // 启动消费者线程
             for (int i = 0; i < threadSize; i++) {
-                matchPoolExecutor.submit(new Thread(() -> {
+                corePoolExecutor.submit(new Thread(() -> {
                     log.info("启动核心操作线程");
                     while (true) {
                         try {