Skip to content

Commit

Permalink
[#4593]Fix when API change edge service not load latest schema problem (
Browse files Browse the repository at this point in the history
  • Loading branch information
liubao68 authored Nov 8, 2024
1 parent f324d4c commit 83585d5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ private void onInstancesChanged(String application, String serviceName,

private void onInstancesChanged(String registryName, String application, String serviceName,
List<? extends DiscoveryInstance> instances) {
for (InstanceChangeListener listener : this.instanceChangeListeners) {
listener.onInstancesChanged(registryName, application, serviceName, instances);
}

Map<String, StatefulDiscoveryInstance> statefulInstances = allInstances.computeIfAbsent(application, key ->
new ConcurrentHashMapEx<>()).computeIfAbsent(serviceName, key -> new ConcurrentHashMapEx<>());

Expand Down Expand Up @@ -136,6 +132,10 @@ private void onInstancesChanged(String registryName, String application, String
application, serviceName, instances.size(), instanceInfo);

rebuildVersionCache(application, serviceName);

for (InstanceChangeListener listener : this.instanceChangeListeners) {
listener.onInstancesChanged(registryName, application, serviceName, instances);
}
}

public void addInstanceChangeListener(InstanceChangeListener instanceChangeListener) {
Expand Down

0 comments on commit 83585d5

Please sign in to comment.