Skip to content

Commit

Permalink
[#1403] Frequent printing of registration and configuration center ad…
Browse files Browse the repository at this point in the history
…dresses when open auto-discovery (#1406)
  • Loading branch information
chengyouling authored Nov 11, 2024
1 parent cb17ba7 commit 95bd96d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ private void initEndPort(String key) {
key, DiscoveryConstants.VERSION_RULE_LATEST);
HashSet<String> currentEngineEndpoints = new HashSet<>();
Map<String, List<String>> zoneAndRegion = generateZoneAndRegionAddress(instances, currentEngineEndpoints);
LOGGER.info("auto discovery service [{}] addresses: [{}]", key, zoneAndRegion);
if (zoneAndRegion == null) {
return;
}
if (isEngineEndpointsChanged(lastEngineEndpointsCache.get(key), currentEngineEndpoints)) {
LOGGER.info("auto discovery service [{}] addresses: [{}]", key, zoneAndRegion);
lastEngineEndpointsCache.put(key, currentEngineEndpoints);
EventManager.post(new RefreshEndpointEvent(zoneAndRegion, key));
}
Expand Down

0 comments on commit 95bd96d

Please sign in to comment.