Fix refreshWebExecutor: incorrect keepAliveTime parameter comparison

pull/171/head
2EXP 3 years ago committed by 2EXP
parent 9dbdd0703c
commit c4675bdf70

@ -116,7 +116,7 @@ public abstract class AbstractCoreThreadPoolDynamicRefresh implements ThreadPool
PoolParameter beforeParameter = webThreadPoolService.getWebThreadPoolParameter(); PoolParameter beforeParameter = webThreadPoolService.getWebThreadPoolParameter();
if (!Objects.equals(beforeParameter.getCoreSize(), nowParameter.getCoreSize()) if (!Objects.equals(beforeParameter.getCoreSize(), nowParameter.getCoreSize())
|| !Objects.equals(beforeParameter.getMaxSize(), nowParameter.getMaxSize()) || !Objects.equals(beforeParameter.getMaxSize(), nowParameter.getMaxSize())
|| !Objects.equals(beforeParameter.getMaxSize(), nowParameter.getMaxSize())) { || !Objects.equals(beforeParameter.getKeepAliveTime(), nowParameter.getKeepAliveTime())) {
webThreadPoolService.updateWebThreadPool(nowParameter); webThreadPoolService.updateWebThreadPool(nowParameter);
} }
} }

Loading…
Cancel
Save