未验证 提交 6fe17e7f 编写于 作者: K ken.lj 提交者: GitHub

Fix concurrent modification exception of stated urls (#9779)

上级 ed2c2ad7
......@@ -29,6 +29,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* ProviderModel is about published services
......@@ -52,7 +53,7 @@ public class ProviderModel {
this.serviceInstance = serviceInstance;
this.serviceModel = serviceModel;
this.serviceConfig = serviceConfig;
this.urls = new ArrayList<>(1);
this.urls = new CopyOnWriteArrayList<>();
}
public String getServiceKey() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册