From a341bd68df993f7d00262845a0d68a3d349573af Mon Sep 17 00:00:00 2001 From: chickenlj Date: Thu, 1 Aug 2024 17:41:32 +0800 Subject: [PATCH] update --- config/root_config.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config/root_config.go b/config/root_config.go index 6741ff357..777e90357 100644 --- a/config/root_config.go +++ b/config/root_config.go @@ -18,6 +18,7 @@ package config import ( + "dubbo.apache.org/dubbo-go/v3/metadata/service" "sync" ) @@ -347,9 +348,16 @@ func (rb *RootConfigBuilder) Build() *RootConfig { } func exportMetadataService() { - ms, err := extension.GetLocalMetadataService(constant.DefaultKey) - msV1, err := extension.GetLocalMetadataServiceV1(constant.MetadataServiceV1) - msV2, err := extension.GetLocalMetadataServiceV2(constant.MetadataServiceV2) + var ( + err error + ms service.MetadataService + msV1 service.MetadataServiceV1 + msV2 service.MetadataServiceV2 + ) + + ms, err = extension.GetLocalMetadataService(constant.DefaultKey) + msV1, err = extension.GetLocalMetadataServiceV1(constant.MetadataServiceV1) + msV2, err = extension.GetLocalMetadataServiceV2(constant.MetadataServiceV2) if err != nil { logger.Warnf("could not init metadata service", err) return