Skip to content
Snippets Groups Projects
Commit b27dac4d authored by lzp0412's avatar lzp0412
Browse files

coding standard

parent 5d51d2a0
No related branches found
No related tags found
No related merge requests found
......@@ -81,8 +81,13 @@ func generateUrl(instance model.Instance) *common.URL {
for k, v := range instance.Metadata {
urlMap.Set(k, v)
}
return common.NewURLWithOptions(common.WithIp(instance.Ip), common.WithPort(strconv.Itoa(int(instance.Port))),
common.WithProtocol(protocol), common.WithParams(urlMap), common.WithPath(path))
return common.NewURLWithOptions(
common.WithIp(instance.Ip),
common.WithPort(strconv.Itoa(int(instance.Port))),
common.WithProtocol(protocol),
common.WithParams(urlMap),
common.WithPath(path),
)
}
func (nl *nacosListener) Callback(services []model.SubscribeService, err error) {
......
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