Remove duplicate settings telemetry related context id in nacos. (#5306)

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
This commit is contained in:
Ax1an 2020-08-13 16:08:34 +08:00 committed by GitHub
parent a7e77832a9
commit d3e0dbb973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -32,7 +32,6 @@ import org.apache.skywalking.oap.server.core.cluster.ServiceQueryException;
import org.apache.skywalking.oap.server.core.cluster.ServiceRegisterException;
import org.apache.skywalking.oap.server.core.remote.client.Address;
import org.apache.skywalking.oap.server.library.util.CollectionUtils;
import org.apache.skywalking.oap.server.telemetry.api.TelemetryRelatedContext;
public class NacosCoordinator implements ClusterRegister, ClusterNodesQuery {
@ -78,7 +77,6 @@ public class NacosCoordinator implements ClusterRegister, ClusterNodesQuery {
throw new ServiceRegisterException(e.getMessage());
}
this.selfAddress = remoteInstance.getAddress();
TelemetryRelatedContext.INSTANCE.setId(selfAddress.toString());
}
private boolean needUsingInternalAddr() {