diff --git a/metadata/namemapping/dynamic/service_name_mapping.go b/metadata/namemapping/dynamic/service_name_mapping.go index e93c256fe093b4a3e3c431e1d012038b2bb7976b..b50a73c820589d7f1b10a35310201ac79de3b481 100644 --- a/metadata/namemapping/dynamic/service_name_mapping.go +++ b/metadata/namemapping/dynamic/service_name_mapping.go @@ -18,6 +18,7 @@ package dynamic import ( + "github.com/apache/dubbo-go/metadata/namemapping" "strconv" "time" ) @@ -31,7 +32,6 @@ import ( "github.com/apache/dubbo-go/common/constant" "github.com/apache/dubbo-go/config" "github.com/apache/dubbo-go/config_center" - "github.com/apache/dubbo-go/metadata" ) const ( @@ -77,6 +77,6 @@ func (d *DynamicConfigurationServiceNameMapping) buildGroup(serviceInterface str } // NewServiceNameMapping will create an instance of DynamicConfigurationServiceNameMapping -func NewServiceNameMapping(dc config_center.DynamicConfiguration) metadata.ServiceNameMapping { +func NewServiceNameMapping(dc config_center.DynamicConfiguration) namemapping.ServiceNameMapping { return &DynamicConfigurationServiceNameMapping{dc: dc} } diff --git a/metadata/service_name_mapping.go b/metadata/namemapping/service_name_mapping.go similarity index 98% rename from metadata/service_name_mapping.go rename to metadata/namemapping/service_name_mapping.go index c14e8ce2e7c40d1573897dfd6ba64c16e18acac7..451a60d2cf5956cb42ac18b3ebf60e0d47c5b506 100644 --- a/metadata/service_name_mapping.go +++ b/metadata/namemapping/service_name_mapping.go @@ -15,7 +15,7 @@ * limitations under the License. */ -package metadata +package namemapping import ( gxset "github.com/dubbogo/gost/container/set" diff --git a/metadata/service_exporter/configurable/exporter_test.go b/metadata/service_exporter/configurable/exporter_test.go index 532ba5d259307127bc1a6497d596815f98898c37..0975f07213c7094d8ee6ce5b5f76bffaf3c89908 100644 --- a/metadata/service_exporter/configurable/exporter_test.go +++ b/metadata/service_exporter/configurable/exporter_test.go @@ -17,6 +17,14 @@ package configurable +import ( + "testing" +) + +import ( + "github.com/stretchr/testify/assert" +) + import ( _ "github.com/apache/dubbo-go/common/proxy/proxy_factory" "github.com/apache/dubbo-go/config" @@ -24,8 +32,6 @@ import ( "github.com/apache/dubbo-go/metadata/service/inmemory" "github.com/apache/dubbo-go/protocol/dubbo" _ "github.com/apache/dubbo-go/protocol/dubbo" - "github.com/stretchr/testify/assert" - "testing" ) func TestConfigurableExporter(t *testing.T) {