diff --git a/sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/main/java/com/alipay/sofa/rpc/boot/context/SofaBootRpcStartListener.java b/sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/main/java/com/alipay/sofa/rpc/boot/context/SofaBootRpcStartListener.java index 663f0eff8..1402ac7db 100644 --- a/sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/main/java/com/alipay/sofa/rpc/boot/context/SofaBootRpcStartListener.java +++ b/sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/main/java/com/alipay/sofa/rpc/boot/context/SofaBootRpcStartListener.java @@ -16,7 +16,6 @@ */ package com.alipay.sofa.rpc.boot.context; -import com.alipay.sofa.rpc.boot.common.SofaBootRpcParserUtil; import com.alipay.sofa.rpc.boot.config.FaultToleranceConfigurator; import com.alipay.sofa.rpc.boot.config.SofaBootRpcProperties; import com.alipay.sofa.rpc.boot.container.ProviderConfigContainer; @@ -24,7 +23,6 @@ import com.alipay.sofa.rpc.boot.container.ServerConfigContainer; import com.alipay.sofa.rpc.boot.context.event.SofaBootRpcStartEvent; import com.alipay.sofa.rpc.config.ProviderConfig; -import com.alipay.sofa.rpc.event.LookoutSubscriber; import org.springframework.context.ApplicationListener; import org.springframework.util.CollectionUtils; @@ -63,8 +61,6 @@ public SofaBootRpcStartListener(SofaBootRpcProperties sofaBootRpcProperties, @Override public void onApplicationEvent(SofaBootRpcStartEvent event) { - //choose disable metrics lookout - disableLookout(); //extra info processExtra(event); @@ -93,12 +89,4 @@ protected void processExtra(SofaBootRpcStartEvent event) { } - protected void disableLookout() { - Boolean disable = SofaBootRpcParserUtil.parseBoolean(sofaBootRpcProperties - .getLookoutCollectDisable()); - - if (disable != null) { - LookoutSubscriber.setLookoutCollectDisable(disable); - } - } }