zhaozw commented on code in PR #2810:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/2810#discussion_r861412391
##########
governance/src/main/java/org/apache/servicecomb/router/distribute/AbstractRouterDistributor.java:
##########
@@ -146,7 +150,7 @@ public void initLatestVersion(String serviceName, List<T>
list) {
String latestVersion = null;
for (T server : list) {
E ms = getIns.apply(server);
- if (getServerName.apply(ms).equals(serviceName)) {
+ if (getServerName.apply(ms).equals(serviceName) ||
getAlias.apply(ms).equals(serviceName)) {
if (latestVersion == null || VersionCompareUtil
Review Comment:
getAlias如何可以为null,加上getAlias!=null&&getAlias.apply(ms).equals(serviceName) ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]