Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Apr 14, 2022
1 parent 80f296b commit 92823c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/lotusclient/lotusclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ func (c *Client) HealthCheck() error {
// CurrentSealingSectors returns the total number of sectors considered to be in sealing.
func (c *Client) CurrentSealingSectors() (int, error) {
// these are the sector states mapping to sstProving
// https://github.com/filecoin-project/lotus/blob/v1.10.0/extern/storage-sealing/sector_state.go#L109
// https://github.com/filecoin-project/lotus/blob/v1.15.1/extern/storage-sealing/sector_state.go#L109
// which are the only states considered not in sealing
// https://github.com/filecoin-project/lotus/blob/v1.10.0/extern/storage-sealing/stats.go#L65
// https://github.com/filecoin-project/lotus/blob/v1.15.1/extern/storage-sealing/stats.go#L65
// hardcode here to avoid importing tons of dependencies.
notSealingStates := []string{"Proving", "Removed", "Removing",
"Terminating", "TerminateWait", "TerminateFinality", "TerminateFailed", "Available"}
Expand Down

0 comments on commit 92823c9

Please sign in to comment.