Prune nodes if they exceed their timeout time

This commit is contained in:
Tim Beatham
2023-11-06 13:37:28 +00:00
parent bc6cd4fdd5
commit acbeb689b5
16 changed files with 199 additions and 171 deletions

View File

@@ -24,13 +24,13 @@ func (s *SyncErrorHandlerImpl) incrementFailedCount(meshId string, endpoint stri
return false
}
self, err := s.meshManager.GetSelf(meshId)
// self, err := s.meshManager.GetSelf(meshId)
if err != nil {
return false
}
// if err != nil {
// return false
// }
mesh.DecrementHealth(meshId, self.GetHostEndpoint())
// mesh.DecrementHealth(endpoint, self.GetHostEndpoint())
return true
}