From 12ac73e50bbfe5e7e585a87e8d20676b87f6b1d9 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Thu, 25 Jun 2020 11:25:43 +0100 Subject: [PATCH] server/{grpc,rpc}: fix deregister domain bug (#1742) * server/{grpc,rpc}: fix deregister domain bug * server/grpc: remove unnecessary slice --- grpc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grpc.go b/grpc.go index 4dbc68e..71d456b 100644 --- a/grpc.go +++ b/grpc.go @@ -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 }