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:
ben-toogood 2020-06-25 11:25:43 +01:00 committed by Vasiliy Tolstov
parent c58690b414
commit 12ac73e50b

View File

@ -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
}