Fixed Hystrix issues

pull/285/head
lucky 8 3 years ago
parent 071c62cd4f
commit 1fa5395aa6

@ -143,8 +143,7 @@ public class DiscoveryClient implements DisposableBean {
boolean success = register(); boolean success = register();
// TODO Abstract server registration logic // TODO Abstract server registration logic
ThreadPoolAdapterRegister adapterRegister = ApplicationContextHolder.getBean(ThreadPoolAdapterRegister.class); ThreadPoolAdapterRegister adapterRegister = ApplicationContextHolder.getBean(ThreadPoolAdapterRegister.class);
Map<String, ThreadPoolAdapter> threadPoolAdapterMap = ApplicationContextHolder.getBeansOfType(ThreadPoolAdapter.class); adapterRegister.register();
adapterRegister.register(threadPoolAdapterMap);
if (success) { if (success) {
instanceInfo.unsetIsDirty(timestamp); instanceInfo.unsetIsDirty(timestamp);
} }

Loading…
Cancel
Save