fix in consul discovery
This commit is contained in:
@@ -103,7 +103,7 @@ func (s *Service) Register() error {
|
|||||||
}
|
}
|
||||||
func (s *Service) Unregister() error {
|
func (s *Service) Unregister() error {
|
||||||
s.ttlTicker.Stop()
|
s.ttlTicker.Stop()
|
||||||
s.hcTicker.Stop()
|
// s.hcTicker.Stop()
|
||||||
|
|
||||||
s.client.Catalog().Deregister(&consul.CatalogDeregistration{
|
s.client.Catalog().Deregister(&consul.CatalogDeregistration{
|
||||||
Address: s.Address,
|
Address: s.Address,
|
||||||
|
|||||||
Reference in New Issue
Block a user