Do same for host port on deregister
This commit is contained in:
parent
0f6d09af33
commit
a42de29f67
@ -453,9 +453,14 @@ func (s *rpcServer) Deregister() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// mq-rpc(eg. nats) doesn't need the port. its addr is queue name.
|
||||||
|
if port != "" {
|
||||||
|
addr = mnet.HostPort(addr, port)
|
||||||
|
}
|
||||||
|
|
||||||
node := ®istry.Node{
|
node := ®istry.Node{
|
||||||
Id: config.Name + "-" + config.Id,
|
Id: config.Name + "-" + config.Id,
|
||||||
Address: mnet.HostPort(addr, port),
|
Address: addr,
|
||||||
}
|
}
|
||||||
|
|
||||||
service := ®istry.Service{
|
service := ®istry.Service{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user