Commit d6ca00c7 authored by laser's avatar laser
Browse files

feat(labels): add human-readable labels for each member

parent 4d2aefad
......@@ -11,3 +11,15 @@ const (
ErrorInvalidLength // sector exists, but length is incorrect
ErrorMissing // sector no longer exists
)
var labels = [...]string{
"Unknown",
"Ok",
"ErrorInvalidChecksum",
"ErrorInvalidLength",
"ErrorMissing",
}
func (el Health) String() string {
return labels[el]
}
......@@ -10,3 +10,15 @@ const (
Sealing // sector is currently being sealed
Sealed // sector has been sealed successfully
)
var labels = [...]string{
"Unknown",
"Pending",
"Failed",
"Sealing",
"Sealed",
}
func (el State) String() string {
return labels[el]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment