Skip to content

Commit

Permalink
Bugfix: Stargate service node registration path must be in lowercase (b…
Browse files Browse the repository at this point in the history
…aidu#96)

Currently only the service name is converted to lowercase. We should do
the same on group and version as well.
  • Loading branch information
Hao Guan authored and wenweihu86 committed Jul 5, 2019
1 parent a4e8094 commit c85b666
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ public void unregister(RegisterInfo info) {
}

/**
* stargate 注册或者订阅节点时,serviceName 为全小写
* stargate 注册或者订阅节点时,整个 Path 为小写
*/
private String buildParentNodePath(String group, String serviceName, String version) {
return "/" + group + ":" + serviceName.toLowerCase() + ":" + version;
return ("/" + group + ":" + serviceName + ":" + version).toLowerCase();
}


Expand Down

0 comments on commit c85b666

Please sign in to comment.