diff --git a/registry/zookeeper/registry.go b/registry/zookeeper/registry.go index 689c7b1baf4e59185a0e77aca5019c18761d2150..6b15133319975ee6cb305482b1cfd17aacbca5b6 100644 --- a/registry/zookeeper/registry.go +++ b/registry/zookeeper/registry.go @@ -262,7 +262,6 @@ func (r *zkRegistry) register(c common.URL) error { err error //revision string params url.Values - urlPath string rawURL string encodedURL string dubboPath string @@ -320,12 +319,7 @@ func (r *zkRegistry) register(c common.URL) error { host = c.Ip + ":" + c.Port } - urlPath = c.Path - //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()) + rawURL = fmt.Sprintf("%s://%s%s?%s", c.Protocol, host, c.Path, params.Encode()) encodedURL = url.QueryEscape(rawURL) // 鎶婅嚜宸辨敞鍐宻ervice providers