mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-18 08:59:45 +02:00
Added health system to count how many times a node
fails to conenct.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user