Skip to content
Open
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 @@ -181,7 +181,9 @@ private Swagger loadFromResource(String path) {

private Swagger loadFromRemote(Microservice microservice, Collection<MicroserviceInstance> instances,
String schemaId) {
String key = microservice.getServiceId() + "." + schemaId;
// The client does not restart, the serviceId changes after the provider is upgraded. As a result,
// the same schema is loaded repeatedly.
String key = microservice.getServiceName() + "." + schemaId;
Swagger result = remoteSwagger.computeIfAbsent(key, k -> {
String schemaContent = DiscoveryManager.INSTANCE.getSchema(microservice.getServiceId(), instances, schemaId);
if (schemaContent != null) {
Expand Down
Loading