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:
parent
292da40886
commit
c45ea62ea8
@ -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(®istry.Service{
|
||||
Name: service.Name,
|
||||
Version: service.Version,
|
||||
Nodes: []*registry.Node{node},
|
||||
})
|
||||
|
||||
// save the error
|
||||
gerr = err
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user