From dffce0835d0796ae33748735214953a1b1f7b707 Mon Sep 17 00:00:00 2001 From: "yong.teng" Date: Wed, 30 Oct 2024 14:44:02 +0800 Subject: [PATCH] fix: ConsulMetadataReport overrides the registerServiceAppMapping method and returns true. --- .../metadata/store/consul/ConsulMetadataReport.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dubbo-metadata-report-extensions/dubbo-metadata-report-consul/src/main/java/org/apache/dubbo/metadata/store/consul/ConsulMetadataReport.java b/dubbo-metadata-report-extensions/dubbo-metadata-report-consul/src/main/java/org/apache/dubbo/metadata/store/consul/ConsulMetadataReport.java index e678bd463..629560b22 100644 --- a/dubbo-metadata-report-extensions/dubbo-metadata-report-consul/src/main/java/org/apache/dubbo/metadata/store/consul/ConsulMetadataReport.java +++ b/dubbo-metadata-report-extensions/dubbo-metadata-report-consul/src/main/java/org/apache/dubbo/metadata/store/consul/ConsulMetadataReport.java @@ -53,6 +53,17 @@ public ConsulMetadataReport(URL url) { client = new ConsulClient(host, port); } + @Override + public boolean registerServiceAppMapping(String serviceKey, String application, URL url) { + return true; + } + + @Override + public boolean registerServiceAppMapping(String serviceInterface, String defaultMappingGroup, + String newConfigContent, Object ticket) { + return true; + } + @Override protected void doStoreProviderMetadata(MetadataIdentifier providerMetadataIdentifier, String serviceDefinitions) { this.storeMetadata(providerMetadataIdentifier, serviceDefinitions);