Skip to content

Commit

Permalink
Change service name to like java style (like interfaceName::).
Browse files Browse the repository at this point in the history
  • Loading branch information
Changeden committed Jul 29, 2021
1 parent 808862e commit c0bf6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/nacos/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func getServiceName(url *common.URL) string {

func appendParam(target *bytes.Buffer, url *common.URL, key string) {
value := url.GetParam(key, "")
target.Write([]byte(constant.NACOS_SERVICE_NAME_SEPARATOR))
if strings.TrimSpace(value) != "" {
target.Write([]byte(constant.NACOS_SERVICE_NAME_SEPARATOR))
target.Write([]byte(value))
}
}
Expand Down

0 comments on commit c0bf6cd

Please sign in to comment.