Do not deregister services in the monitor unless Reap is called
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user