Remove service id so nodes are also removed from catalog
This commit is contained in:
parent
b91af916f9
commit
113cc8a9cb
@ -65,9 +65,8 @@ func (c *consulRegistry) Deregister(s *Service) error {
|
|||||||
node := s.Nodes[0]
|
node := s.Nodes[0]
|
||||||
|
|
||||||
_, err := c.Client.Catalog().Deregister(&consul.CatalogDeregistration{
|
_, err := c.Client.Catalog().Deregister(&consul.CatalogDeregistration{
|
||||||
Node: node.Id,
|
Node: node.Id,
|
||||||
Address: node.Address,
|
Address: node.Address,
|
||||||
ServiceID: node.Id,
|
|
||||||
}, nil)
|
}, nil)
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user