Do not deregister services in the monitor unless Reap is called
This commit is contained in:
parent
292da40886
commit
c45ea62ea8
@ -78,13 +78,6 @@ func (m *monitor) check(service string) (*Status, error) {
|
|||||||
client.WithRetries(3),
|
client.WithRetries(3),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// reap the dead node
|
|
||||||
m.registry.Deregister(®istry.Service{
|
|
||||||
Name: service.Name,
|
|
||||||
Version: service.Version,
|
|
||||||
Nodes: []*registry.Node{node},
|
|
||||||
})
|
|
||||||
|
|
||||||
// save the error
|
// save the error
|
||||||
gerr = err
|
gerr = err
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user