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]
|
||||
|
||||
_, err := c.Client.Catalog().Deregister(&consul.CatalogDeregistration{
|
||||
Node: node.Id,
|
||||
Address: node.Address,
|
||||
ServiceID: node.Id,
|
||||
Node: node.Id,
|
||||
Address: node.Address,
|
||||
}, nil)
|
||||
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user