You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/05/11 02:01:34 UTC
[dubbo] branch 3.0 updated: curator client support multi address.
(#7679)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 8a4a6b5 curator client support multi address. (#7679)
8a4a6b5 is described below
commit 8a4a6b52e933747b9c67ad3751a16520684018b4
Author: 赵延 <10...@qq.com>
AuthorDate: Tue May 11 10:01:23 2021 +0800
curator client support multi address. (#7679)
---
.../org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java b/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
index ed9be54..cb532bd 100644
--- a/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
+++ b/dubbo-registry/dubbo-registry-zookeeper/src/main/java/org/apache/dubbo/registry/zookeeper/util/CuratorFrameworkUtils.java
@@ -58,7 +58,7 @@ public abstract class CuratorFrameworkUtils {
public static CuratorFramework buildCuratorFramework(URL connectionURL) throws Exception {
CuratorFramework curatorFramework = CuratorFrameworkFactory.builder()
- .connectString(connectionURL.getIp() + ":" + connectionURL.getPort())
+ .connectString(connectionURL.getBackupAddress())
.retryPolicy(buildRetryPolicy(connectionURL))
.build();
curatorFramework.start();