Skip to content
Snippets Groups Projects
Commit 31b0a9d8 authored by lizhipeng's avatar lizhipeng
Browse files

fix import error

parent f44524ab
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
package dynamic
import (
"github.com/apache/dubbo-go/metadata/mapping"
"strconv"
"sync"
"time"
......@@ -33,7 +34,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 (
......@@ -84,7 +84,7 @@ var (
)
// GetServiceNameMappingInstance will return an instance of DynamicConfigurationServiceNameMapping
func GetServiceNameMappingInstance() metadata.ServiceNameMapping {
func GetServiceNameMappingInstance() mapping.ServiceNameMapping {
serviceNameMappingInitOnce.Do(func() {
dc := common_cfg.GetEnvInstance().GetDynamicConfiguration()
serviceNameMappingInstance = &DynamicConfigurationServiceNameMapping{dc: dc}
......
......@@ -18,6 +18,7 @@
package memory
import (
"github.com/apache/dubbo-go/metadata/mapping"
"sync"
)
......@@ -28,7 +29,6 @@ import (
import (
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/config"
"github.com/apache/dubbo-go/metadata"
)
func init() {
......@@ -50,7 +50,7 @@ var (
nameMappingInitOnce sync.Once
)
func GetInMemoryServiceNameMappingInstance() metadata.ServiceNameMapping {
func GetInMemoryServiceNameMappingInstance() mapping.ServiceNameMapping {
nameMappingInitOnce.Do(func() {
nameMappingInstance = &InMemoryServiceNameMapping{}
})
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment