1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Do not deregister services in the monitor unless Reap is called

This commit is contained in:
Asim Aslam 2019-11-02 23:13:01 +00:00
parent 292da40886
commit c45ea62ea8

View File

@ -78,13 +78,6 @@ func (m *monitor) check(service string) (*Status, error) {
client.WithRetries(3),
)
if err != nil {
// reap the dead node
m.registry.Deregister(&registry.Service{
Name: service.Name,
Version: service.Version,
Nodes: []*registry.Node{node},
})
// save the error
gerr = err
continue