From db4dcabd7a0bf0a32abea99a96a3990296e4f246 Mon Sep 17 00:00:00 2001 From: lambdaxiao Date: Tue, 1 Mar 2022 10:31:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=8E=B7=E5=8F=96services?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring-cloud-starter-tencent-polaris-discovery/pom.xml | 1 + .../cloud/polaris/discovery/PolarisDiscoveryHandler.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/pom.xml b/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/pom.xml index fa2cabb0..027ebf8c 100644 --- a/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/pom.xml +++ b/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/pom.xml @@ -35,6 +35,7 @@ com.tencent.polaris polaris-discovery-factory + 1.2.4-SNAPSHOT diff --git a/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/src/main/java/com/tencent/cloud/polaris/discovery/PolarisDiscoveryHandler.java b/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/src/main/java/com/tencent/cloud/polaris/discovery/PolarisDiscoveryHandler.java index 103fc3c8..9430d712 100644 --- a/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/src/main/java/com/tencent/cloud/polaris/discovery/PolarisDiscoveryHandler.java +++ b/spring-cloud-tencent-starters/spring-cloud-starter-tencent-polaris-discovery/src/main/java/com/tencent/cloud/polaris/discovery/PolarisDiscoveryHandler.java @@ -100,10 +100,8 @@ public class PolarisDiscoveryHandler { */ public ServicesResponse GetServices() { String namespace = polarisProperties.getNamespace(); - Map allTransitiveCustomMetadata = MetadataContextHolder.get().getAllTransitiveCustomMetadata(); GetServicesRequest request = new GetServicesRequest(); request.setNamespace(namespace); - request.setMetadata(allTransitiveCustomMetadata); return polarisConsumer.getServices(request); }