Dubbo thread pool adaptation code optimization

pull/246/head
chen.ma 3 years ago
parent f15469f1e5
commit 14e1f414df

@ -55,7 +55,7 @@ public class DubboThreadPoolAdapter implements ThreadPoolAdapter, ApplicationLis
@Override
public ThreadPoolAdapterState getThreadPoolState(String identify) {
ThreadPoolAdapterState threadPoolAdapterState = new ThreadPoolAdapterState();
final ThreadPoolExecutor executor = DUBBO_PROTOCOL_EXECUTOR.get(identify);
ThreadPoolExecutor executor = DUBBO_PROTOCOL_EXECUTOR.get(identify);
if (executor == null) {
log.warn("[{}] Dubbo consuming thread pool not found.", identify);
return threadPoolAdapterState;

Loading…
Cancel
Save