Skip to content
Snippets Groups Projects
Commit b3e301b6 authored by vito.he's avatar vito.he
Browse files

Mod: move service name mapping

parent d7d42d36
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/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}
}
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package metadata
package namemapping
import (
gxset "github.com/dubbogo/gost/container/set"
......
......@@ -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) {
......
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