From 41fa6f5d7af2fe6fa56b05f80097a5d69ed760d1 Mon Sep 17 00:00:00 2001
From: "vito.he" <hxmhlt@163.com>
Date: Mon, 1 Jul 2019 13:57:53 +0800
Subject: [PATCH] Fix:fix a bug about register after group feature commit

---
 registry/zookeeper/registry.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/registry/zookeeper/registry.go b/registry/zookeeper/registry.go
index 21a156bc6..689c7b1ba 100644
--- a/registry/zookeeper/registry.go
+++ b/registry/zookeeper/registry.go
@@ -321,10 +321,10 @@ func (r *zkRegistry) register(c common.URL) error {
 		}
 
 		urlPath = c.Path
-		if r.zkPath[urlPath] != 0 {
-			urlPath += strconv.Itoa(r.zkPath[urlPath])
-		}
-		r.zkPath[urlPath]++
+		//if r.zkPath[urlPath] != 0 {
+		//	urlPath += strconv.Itoa(r.zkPath[urlPath])
+		//}
+		//r.zkPath[urlPath]++
 		rawURL = fmt.Sprintf("%s://%s%s?%s", c.Protocol, host, urlPath, params.Encode())
 		encodedURL = url.QueryEscape(rawURL)
 
-- 
GitLab