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
c58690b414
commit
12ac73e50b
4
grpc.go
4
grpc.go
@ -794,7 +794,9 @@ func (g *grpcServer) Deregister() error {
|
|||||||
if logger.V(logger.InfoLevel, logger.DefaultLogger) {
|
if logger.V(logger.InfoLevel, logger.DefaultLogger) {
|
||||||
logger.Infof("Deregistering node: %s", node.Id)
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user