From 82ab22b926aacf62dea42b849aed3f5f8c43fb00 Mon Sep 17 00:00:00 2001 From: "vito.he" <hxmhlt@163.com> Date: Sat, 11 Apr 2020 15:57:26 +0800 Subject: [PATCH] Mod:import pkg rename --- metadata/service/exporter/configurable/exporter.go | 3 ++- metadata/service/exporter/configurable/exporter_test.go | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata/service/exporter/configurable/exporter.go b/metadata/service/exporter/configurable/exporter.go index a8d73c2a2..c3338c962 100644 --- a/metadata/service/exporter/configurable/exporter.go +++ b/metadata/service/exporter/configurable/exporter.go @@ -28,6 +28,7 @@ import ( "github.com/apache/dubbo-go/common/logger" "github.com/apache/dubbo-go/config" "github.com/apache/dubbo-go/metadata/service" + "github.com/apache/dubbo-go/metadata/service/exporter" ) // MetadataServiceExporter is the ConfigurableMetadataServiceExporter which implement MetadataServiceExporter interface @@ -38,7 +39,7 @@ type MetadataServiceExporter struct { } // NewMetadataServiceExporter will return a service_exporter.MetadataServiceExporter with the specified metadata service -func NewMetadataServiceExporter(metadataService service.MetadataService) service.MetadataServiceExporter { +func NewMetadataServiceExporter(metadataService service.MetadataService) exporter.MetadataServiceExporter { return &MetadataServiceExporter{ metadataService: metadataService, } diff --git a/metadata/service/exporter/configurable/exporter_test.go b/metadata/service/exporter/configurable/exporter_test.go index e67bf07a3..0975f0721 100644 --- a/metadata/service/exporter/configurable/exporter_test.go +++ b/metadata/service/exporter/configurable/exporter_test.go @@ -18,7 +18,6 @@ package configurable import ( - "github.com/apache/dubbo-go/metadata/service" "testing" ) @@ -55,7 +54,7 @@ func TestConfigurableExporter(t *testing.T) { }}) config.MockInitProviderWithSingleRegistry() metadataService := inmemory.NewMetadataService() - exported := service.NewMetadataServiceExporter(metadataService) + exported := NewMetadataServiceExporter(metadataService) assert.Equal(t, false, exported.IsExported()) assert.NoError(t, exported.Export()) assert.Equal(t, true, exported.IsExported()) -- GitLab