mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-18 08:59:45 +02:00
Prune nodes if they exceed their timeout time
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user