Skip to content

Commit c8e77a7

Browse files
authoredJan 13, 2025
Update SofaBootRpcStartListener.java (#1347)
fix 针对 上游 sofa-rpc-all 清理 Lookout sofastack/sofa-rpc#1447 修复类缺失问题
1 parent 786d204 commit c8e77a7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

‎sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/main/java/com/alipay/sofa/rpc/boot/context/SofaBootRpcStartListener.java

-12
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
1616
*/
1717
package com.alipay.sofa.rpc.boot.context;
1818

19-
import com.alipay.sofa.rpc.boot.common.SofaBootRpcParserUtil;
2019
import com.alipay.sofa.rpc.boot.config.FaultToleranceConfigurator;
2120
import com.alipay.sofa.rpc.boot.config.SofaBootRpcProperties;
2221
import com.alipay.sofa.rpc.boot.container.ProviderConfigContainer;
2322
import com.alipay.sofa.rpc.boot.container.RegistryConfigContainer;
2423
import com.alipay.sofa.rpc.boot.container.ServerConfigContainer;
2524
import com.alipay.sofa.rpc.boot.context.event.SofaBootRpcStartEvent;
2625
import com.alipay.sofa.rpc.config.ProviderConfig;
27-
import com.alipay.sofa.rpc.event.LookoutSubscriber;
2826
import org.springframework.context.ApplicationListener;
2927
import org.springframework.util.CollectionUtils;
3028

@@ -63,8 +61,6 @@ public SofaBootRpcStartListener(SofaBootRpcProperties sofaBootRpcProperties,
6361

6462
@Override
6563
public void onApplicationEvent(SofaBootRpcStartEvent event) {
66-
//choose disable metrics lookout
67-
disableLookout();
6864

6965
//extra info
7066
processExtra(event);
@@ -93,12 +89,4 @@ protected void processExtra(SofaBootRpcStartEvent event) {
9389

9490
}
9591

96-
protected void disableLookout() {
97-
Boolean disable = SofaBootRpcParserUtil.parseBoolean(sofaBootRpcProperties
98-
.getLookoutCollectDisable());
99-
100-
if (disable != null) {
101-
LookoutSubscriber.setLookoutCollectDisable(disable);
102-
}
103-
}
10492
}

0 commit comments

Comments
 (0)