Skip to content
Snippets Groups Projects
Commit 41fa6f5d authored by vito.he's avatar vito.he
Browse files

Fix:fix a bug about register after group feature commit

parent fccd093e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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