chengyouling commented on code in PR #5064:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/5064#discussion_r2745288880
##########
foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/swagger/SwaggerLoader.java:
##########
@@ -212,4 +214,15 @@ private Swagger loadFromRemote(Microservice microservice,
Collection<Microservic
return null;
}
+
+ public void removeRemoteSwagger(List<MicroserviceInstance> instances) {
+ if (CollectionUtils.isEmpty(instances)) {
+ return;
+ }
+ String serviceId = instances.get(0).getServiceId();
+ int originSize = remoteSwagger.size();
+ remoteSwagger.remove(serviceId);
Review Comment:
应该不会,这个删除是每次注册中心的实例变化之后刷的
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]