Skip to content

Commit

Permalink
[huaweicloud#1403] Frequent printing of registration and configuratio…
Browse files Browse the repository at this point in the history
…n center addresses when open auto-discovery (huaweicloud#1404)
  • Loading branch information
chengyouling authored Nov 11, 2024
1 parent b0ba681 commit b35b66b
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 b35b66b

Please sign in to comment.