Skip to content
Snippets Groups Projects
Commit 7601ec4b authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Comments and debugs

parent 58407309
No related branches found
No related tags found
1 merge request!53Release
......@@ -8,6 +8,7 @@
package utility
import (
jww "github.com/spf13/jwalterweatherman"
ds "gitlab.com/elixxir/comms/network/dataStructures"
"gitlab.com/elixxir/primitives/states"
)
......@@ -22,6 +23,7 @@ func TrackResults(resultsCh chan ds.EventReturn, numResults int) (bool, int, int
if er.TimedOut {
numTimeOut++
} else if states.Round(er.RoundInfo.State) == states.FAILED {
jww.ERROR.Printf("RoundInfo FAILED: %+v", er.RoundInfo)
numRoundFail++
}
}
......
......@@ -177,6 +177,9 @@ func (t *Tracker) start(stop *stoppable.Single) {
return
case heartbeat = <-t.heartbeat:
// FIXME: There's no transition to unhealthy here
// and there needs to be after some number of bad
// polls
if healthy(heartbeat) {
t.setHealth(true)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment