You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/08/07 06:33:38 UTC
[dubbo] branch master updated: use consul with group and version
(#4755)
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 4acec50 use consul with group and version (#4755)
4acec50 is described below
commit 4acec50c8afb95544b08a6dbdda743264af69909
Author: Ian Luo <ia...@gmail.com>
AuthorDate: Wed Aug 7 14:33:23 2019 +0800
use consul with group and version (#4755)
fix #4309
---
.../src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java b/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
index e4832ac..2a8bc1c 100644
--- a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
+++ b/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
@@ -275,7 +275,7 @@ public class ConsulRegistry extends FailbackRegistry {
service.setAddress(url.getHost());
service.setPort(url.getPort());
service.setId(buildId(url));
- service.setName(url.getServiceInterface());
+ service.setName(url.getServiceKey());
service.setCheck(buildCheck(url));
service.setTags(buildTags(url));
service.setMeta(Collections.singletonMap(URL_META_KEY, url.toFullString()));