支持获取services

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

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

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

Loading…
Cancel
Save