server/{grpc,rpc}: fix deregister domain bug (#1742)
* server/{grpc,rpc}: fix deregister domain bug * server/grpc: remove unnecessary slice
This commit is contained in:
parent
51b4ab0abc
commit
5ab475636a
@ -794,7 +794,9 @@ func (g *grpcServer) Deregister() error {
|
||||
if logger.V(logger.InfoLevel, logger.DefaultLogger) {
|
||||
logger.Infof("Deregistering node: %s", node.Id)
|
||||
}
|
||||
if err := config.Registry.Deregister(service); err != nil {
|
||||
|
||||
opt := registry.DeregisterDomain(g.opts.Namespace)
|
||||
if err := config.Registry.Deregister(service, opt); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -771,7 +771,7 @@ func (s *rpcServer) Deregister() error {
|
||||
if logger.V(logger.InfoLevel, logger.DefaultLogger) {
|
||||
log.Infof("Registry [%s] Deregistering node: %s", config.Registry.String(), node.Id)
|
||||
}
|
||||
if err := config.Registry.Deregister(service); err != nil {
|
||||
if err := config.Registry.Deregister(service, registry.DeregisterDomain(s.opts.Namespace)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user