Remove use of config/cmd in api

This commit is contained in:
Asim Aslam
2019-12-30 17:29:20 +00:00
parent c145f355dd
commit e0078bbcd5
2 changed files with 1 additions and 4 deletions

View File

@@ -9,14 +9,12 @@ import (
"github.com/micro/go-micro/api/handler"
"github.com/micro/go-micro/api/router"
regRouter "github.com/micro/go-micro/api/router/registry"
"github.com/micro/go-micro/config/cmd"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/registry/memory"
)
func testHttp(t *testing.T, path, service, ns string) {
r := memory.NewRegistry()
cmd.DefaultCmd = cmd.NewCmd(cmd.Registry(&r))
l, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {