Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4593]Fix when API change edge service not load latest schema problem #4594

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading