yanghao605 commented on code in PR #5064:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/5064#discussion_r2739751398


##########
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]

Reply via email to