提交 59ebff52 编写于 作者: oldratlee's avatar oldratlee 🔥

多注册中心的cluster可以覆盖 DUBBO-577

上级 7ca9e43e
......@@ -393,7 +393,7 @@ public class ReferenceConfig<T> extends AbstractReferenceConfig {
}
if (registryURL != null) { // 有 注册中心协议的URL
// 对有注册中心的Cluster
URL u = registryURL.addParameter(Constants.CLUSTER_KEY, AvailableCluster.NAME);
URL u = registryURL.addParameterIfAbsent(Constants.CLUSTER_KEY, AvailableCluster.NAME);
invoker = cluster.join(new StaticDirectory(u, invokers));
} else { // 不是 注册中心的URL
invoker = cluster.join(new StaticDirectory(invokers));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册