Commit 7b7ba3f5 authored by laser's avatar laser
Browse files

refactor(add comments as per dig)

parent 8465ef1b
...@@ -24,14 +24,16 @@ func elapsed(what string) func() { ...@@ -24,14 +24,16 @@ func elapsed(what string) func() {
} }
} }
// SealedSectorHealth represents the healthiness of a sector managed by a
// sector builder.
type SealedSectorHealth int type SealedSectorHealth int
const ( const (
Unknown SealedSectorHealth = iota Unknown SealedSectorHealth = iota
Ok Ok // everything is fine
ErrorInvalidChecksum ErrorInvalidChecksum // sector exists, but checksum is invalid
ErrorInvalidLength ErrorInvalidLength // sector exists, but length is incorrect
ErrorMissing ErrorMissing // sector no longer exists
) )
// SortedSectorInfo is a slice of SectorInfo sorted (lexicographically, // SortedSectorInfo is a slice of SectorInfo sorted (lexicographically,
......
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