Skip to content
Snippets Groups Projects
Commit 0a5bb75d authored by Jake Taylor's avatar Jake Taylor
Browse files

bring back some changes

parent 4624628f
No related branches found
No related tags found
2 merge requests!170Release,!119revert getroundresults changes
...@@ -156,7 +156,7 @@ func (c *Client) getRoundResults(roundList []id.Round, timeout time.Duration, ...@@ -156,7 +156,7 @@ func (c *Client) getRoundResults(roundList []id.Round, timeout time.Duration,
// Skip if the round is nil (unknown from historical rounds) // Skip if the round is nil (unknown from historical rounds)
// they default to timed out, so correct behavior is preserved // they default to timed out, so correct behavior is preserved
if roundReport.RoundInfo == nil || roundReport.TimedOut { if roundReport.TimedOut {
allRoundsSucceeded = false allRoundsSucceeded = false
} else { } else {
// If available, denote the result // If available, denote the result
...@@ -207,8 +207,16 @@ func (c *Client) getHistoricalRounds(msg *pb.HistoricalRounds, ...@@ -207,8 +207,16 @@ func (c *Client) getHistoricalRounds(msg *pb.HistoricalRounds,
// Service historical rounds, sending back to the caller thread // Service historical rounds, sending back to the caller thread
for _, ri := range resp.Rounds { for _, ri := range resp.Rounds {
if ri == nil {
// Handle unknown by historical rounds
sendResults <- ds.EventReturn{
RoundInfo: &pb.RoundInfo{ID: msg.Rounds[i]},
TimedOut: true,
}
} else {
sendResults <- ds.EventReturn{ sendResults <- ds.EventReturn{
RoundInfo: ri, RoundInfo: ri,
} }
} }
} }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment