Remove service id so nodes are also removed from catalog

This commit is contained in:
Asim 2015-08-15 23:03:50 +01:00
parent b91af916f9
commit 113cc8a9cb

View File

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