Skip to content

Commit

Permalink
Fix concurrent modification exception of stated urls (#9779)
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Mar 15, 2022
1 parent ed2c2ad commit 6fe17e7
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,6 +29,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList;

/**
* ProviderModel is about published services
Expand All @@ -52,7 +53,7 @@ public ProviderModel(String serviceKey,
this.serviceInstance = serviceInstance;
this.serviceModel = serviceModel;
this.serviceConfig = serviceConfig;
this.urls = new ArrayList<>(1);
this.urls = new CopyOnWriteArrayList<>();
}

public String getServiceKey() {
Expand Down

0 comments on commit 6fe17e7

Please sign in to comment.