支持获取services

pull/38/head
lambdaxiao 3 years ago
parent e409527a08
commit db4dcabd7a

@ -35,6 +35,7 @@
<dependency>
<groupId>com.tencent.polaris</groupId>
<artifactId>polaris-discovery-factory</artifactId>
<version>1.2.4-SNAPSHOT</version>
</dependency>
<dependency>

@ -100,10 +100,8 @@ public class PolarisDiscoveryHandler {
*/
public ServicesResponse GetServices() {
String namespace = polarisProperties.getNamespace();
Map<String, String> allTransitiveCustomMetadata = MetadataContextHolder.get().getAllTransitiveCustomMetadata();
GetServicesRequest request = new GetServicesRequest();
request.setNamespace(namespace);
request.setMetadata(allTransitiveCustomMetadata);
return polarisConsumer.getServices(request);
}

Loading…
Cancel
Save