From c4675bdf708d62a9b34865f32f3578c3df132269 Mon Sep 17 00:00:00 2001 From: 2EXP <26007713+2exp@users.noreply.github.com> Date: Sun, 3 Apr 2022 22:25:54 +0800 Subject: [PATCH] Fix refreshWebExecutor: incorrect keepAliveTime parameter comparison --- .../starter/refresher/AbstractCoreThreadPoolDynamicRefresh.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/starter/refresher/AbstractCoreThreadPoolDynamicRefresh.java b/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/starter/refresher/AbstractCoreThreadPoolDynamicRefresh.java index 013f319e..cde16e0a 100644 --- a/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/starter/refresher/AbstractCoreThreadPoolDynamicRefresh.java +++ b/hippo4j-spring-boot/hippo4j-core-spring-boot-starter/src/main/java/cn/hippo4j/core/starter/refresher/AbstractCoreThreadPoolDynamicRefresh.java @@ -116,7 +116,7 @@ public abstract class AbstractCoreThreadPoolDynamicRefresh implements ThreadPool PoolParameter beforeParameter = webThreadPoolService.getWebThreadPoolParameter(); if (!Objects.equals(beforeParameter.getCoreSize(), nowParameter.getCoreSize()) || !Objects.equals(beforeParameter.getMaxSize(), nowParameter.getMaxSize()) - || !Objects.equals(beforeParameter.getMaxSize(), nowParameter.getMaxSize())) { + || !Objects.equals(beforeParameter.getKeepAliveTime(), nowParameter.getKeepAliveTime())) { webThreadPoolService.updateWebThreadPool(nowParameter); } }