Change import name

This commit is contained in:
Ben Toogood 2020-04-09 10:32:08 +01:00
parent f102aba4c1
commit 3ede494945

View File

@ -8,7 +8,7 @@ import (
"github.com/micro/go-micro/v2/api/handler" "github.com/micro/go-micro/v2/api/handler"
"github.com/micro/go-micro/v2/api/resolver" "github.com/micro/go-micro/v2/api/resolver"
res "github.com/micro/go-micro/v2/api/resolver/vpath" "github.com/micro/go-micro/v2/api/resolver/vpath"
"github.com/micro/go-micro/v2/api/router" "github.com/micro/go-micro/v2/api/router"
regRouter "github.com/micro/go-micro/v2/api/router/registry" regRouter "github.com/micro/go-micro/v2/api/router/registry"
"github.com/micro/go-micro/v2/registry" "github.com/micro/go-micro/v2/registry"
@ -57,7 +57,7 @@ func testHttp(t *testing.T, path, service, ns string) {
rt := regRouter.NewRouter( rt := regRouter.NewRouter(
router.WithHandler("http"), router.WithHandler("http"),
router.WithRegistry(r), router.WithRegistry(r),
router.WithResolver(res.NewResolver( router.WithResolver(vpath.NewResolver(
resolver.WithNamespace(ns), resolver.WithNamespace(ns),
)), )),
) )