feature(all): 切换使用zookeeper作为注册中心

This commit is contained in:
2023-07-12 14:38:35 +08:00
parent 6e80985552
commit 09343e8efa
5 changed files with 28 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ public class CloudController extends BaseController {
return services()
.groupBy(groupByField)
.toMap()
.collectValues((serviceId, services) -> new CloudServiceVO(serviceId, services.toSortedListBy(CloudServiceVO.Service::getServiceUpTime).toImmutable()))
.collectValues((serviceId, services) -> new CloudServiceVO(serviceId, services.toSortedListBy(CloudServiceVO.Service::getHost).toImmutable()))
.valuesView()
.toSortedListBy(CloudServiceVO::getName)
.toImmutable();