1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

update nacos version to 0.2.1-RC and format code

This commit is contained in:
flystar32
2018-09-20 11:32:30 +08:00
parent e2b73fc3f0
commit 16d2c1b903
8 changed files with 18 additions and 15 deletions

View File

@@ -37,7 +37,7 @@ public class NacosServer extends Server {
this.metaInfo = new MetaInfo() {
@Override
public String getAppName() {
return instance.getService().getName();
return instance.serviceName();
}
@Override

View File

@@ -56,7 +56,7 @@ public class NacosServerList extends AbstractServerList<NacosServer> {
private List<NacosServer> getServers() {
try {
List<Instance> instances = registration.getNacosNamingService()
.selectInstances(serviceId, true);
.getAllInstances(serviceId);
return instancesToServerList(instances);
}
catch (Exception e) {