Fix in consul/discovery.go
This commit is contained in:
parent
b699008fa3
commit
398d7a2074
@ -95,10 +95,10 @@ func (s *Service) Register() error {
|
||||
return nil
|
||||
}
|
||||
func (s *Service) Unregister() error {
|
||||
s.client.Catalog().Deregister(&consul.CatalogDeregistration{
|
||||
Address: s.Address,
|
||||
ServiceID: s.GetID(),
|
||||
}, nil)
|
||||
// s.client.Catalog().Deregister(&consul.CatalogDeregistration{
|
||||
// Address: s.Address,
|
||||
// ServiceID: s.GetID(),
|
||||
// }, nil)
|
||||
|
||||
return s.agent.ServiceDeregister(s.GetID())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user