Skip to content

Commit

Permalink
Update SofaBootRpcStartListener.java
Browse files Browse the repository at this point in the history
fix 针对 上游 sofa-rpc-all 清理 Lookout sofastack/sofa-rpc#1447 修复类缺失问题
  • Loading branch information
Jiiiiiin authored Oct 19, 2024
1 parent 786d204 commit 8fc2d1c
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
*/
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;
import com.alipay.sofa.rpc.boot.container.RegistryConfigContainer;
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;

Expand Down Expand Up @@ -63,8 +61,6 @@ public SofaBootRpcStartListener(SofaBootRpcProperties sofaBootRpcProperties,

@Override
public void onApplicationEvent(SofaBootRpcStartEvent event) {
//choose disable metrics lookout
disableLookout();

//extra info
processExtra(event);
Expand Down Expand Up @@ -93,12 +89,4 @@ protected void processExtra(SofaBootRpcStartEvent event) {

}

protected void disableLookout() {
Boolean disable = SofaBootRpcParserUtil.parseBoolean(sofaBootRpcProperties
.getLookoutCollectDisable());

if (disable != null) {
LookoutSubscriber.setLookoutCollectDisable(disable);
}
}
}

0 comments on commit 8fc2d1c

Please sign in to comment.