Skip to content
Snippets Groups Projects
Commit 19bbdb2c authored by Josh Brooks's avatar Josh Brooks
Browse files

Refactor messages.go to results.go

parent 2e912b88
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
package api
import (
"fmt"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/globals"
"gitlab.com/elixxir/client/network/gateway"
......@@ -28,6 +29,19 @@ const (
Succeeded
)
func (rr RoundResult) String() string {
switch rr {
case TimeOut:
return "TimeOut"
case Failed:
return "Failed"
case Succeeded:
return "Succeeded"
default:
return fmt.Sprintf("UNKNOWN RESULT: %d", RR)
}
}
// Callback interface which reports the requested rounds.
// Designed such that the caller may decide how much detail they need.
// allRoundsSucceeded:
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment