Przeglądaj źródła

修改线程池

xueyiming 7 miesięcy temu
rodzic
commit
411ab04cc0

+ 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 {