Skip to content
Snippets Groups Projects
Unverified Commit 3f03efe6 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #114 from hxmhlt/master

Fix:fix a bug about register after group feature commit
parents fccd093e 78837c5a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
// 把自己注册service providers
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment