Skip to content

Commit

Permalink
修正错误的注释
Browse files Browse the repository at this point in the history
  • Loading branch information
HaojunRen committed Aug 29, 2020
1 parent 4d775f8 commit 0ee555a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ public boolean applyEnvironment(Server server) {

String environment = pluginAdapter.getServerEnvironment(server);
if (matched) {
// 匹配到传递过来的子环境Header的服务实例,返回匹配的子环境服务实例
// 匹配到传递过来的环境Header的服务实例,返回匹配的环境的服务实例
return StringUtils.equals(environment, environmentValue);
} else {
// 没有匹配上,则寻址Common子环境,返回Common子环境的服务实力
// 没有匹配上,则寻址Common环境,返回Common环境的服务实例
return StringUtils.equals(environment, environmentRoute) || StringUtils.equals(environment, DiscoveryConstant.DEFAULT);
}
}
Expand Down

0 comments on commit 0ee555a

Please sign in to comment.