Added health system to count how many times a node

fails to conenct.
This commit is contained in:
Tim Beatham
2023-11-06 09:54:06 +00:00
parent 4dc85f3861
commit c88012cf71
15 changed files with 161 additions and 23 deletions

View File

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