1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

move addr extractor to misc

This commit is contained in:
Asim Aslam
2017-01-12 13:20:34 +00:00
parent fd78e1d432
commit a9889730d6
6 changed files with 6 additions and 195 deletions

View File

@ -15,6 +15,8 @@ import (
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/transport"
"github.com/micro/misc/lib/addr"
"golang.org/x/net/context"
)
@ -204,7 +206,7 @@ func (s *rpcServer) Register() error {
host = parts[0]
}
addr, err := extractAddress(host)
addr, err := addr.Extract(host)
if err != nil {
return err
}
@ -308,7 +310,7 @@ func (s *rpcServer) Deregister() error {
host = parts[0]
}
addr, err := extractAddress(host)
addr, err := addr.Extract(host)
if err != nil {
return err
}