diff --git a/README.md b/README.md index 4c51116..6aa3040 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# micro-api-router-registry \ No newline at end of file +# micro-api-router-register diff --git a/go.mod b/go.mod index 985c9b1..a0673ff 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module github.com/unistack-org/micro-api-router-registry/v3 +module github.com/unistack-org/micro-api-router-register/v3 go 1.15 -require github.com/unistack-org/micro/v3 v3.2.1 +require github.com/unistack-org/micro/v3 v3.2.2 diff --git a/go.sum b/go.sum index 1313a84..36f0120 100644 --- a/go.sum +++ b/go.sum @@ -45,8 +45,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/unistack-org/micro/v3 v3.2.1 h1:+Xt4LhRmKHdYeBNqHg3kUHeTCgJUFm6Py6AUxm6LL98= -github.com/unistack-org/micro/v3 v3.2.1/go.mod h1:J8XxJj4Pqa3Ee0a4biRRtut7UwTlfBq8QRe+s4PKGS0= +github.com/unistack-org/micro/v3 v3.2.2 h1:wli8jSMheABvEdU2tCdqeBEH4HlOCSmPxizud8DklNo= +github.com/unistack-org/micro/v3 v3.2.2/go.mod h1:J8XxJj4Pqa3Ee0a4biRRtut7UwTlfBq8QRe+s4PKGS0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= diff --git a/registry.go b/registry.go index c35ed98..c4ada3a 100644 --- a/registry.go +++ b/registry.go @@ -432,7 +432,7 @@ func (r *registerRouter) Route(req *http.Request) (*api.Service, error) { name := rp.Name // get service - services, err := r.opts.Register.LookupService(r.opts.Context, name, register.GetDomain(rp.Domain)) + services, err := r.opts.Register.LookupService(r.opts.Context, name, register.LookupDomain(rp.Domain)) if err != nil { return nil, err }