Skip to content

Commit

Permalink
fix: update method name from SectorSummary to SectorsSummary
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRuen committed Oct 25, 2023
1 parent 5307b4f commit 258b1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions node/impl/storminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ func (sm *StorageMinerAPI) SectorsListInStates(ctx context.Context, states []api
return sns, nil
}

// Use SectorSummary from stats (prometheus) for faster result
// Use SectorsSummary from stats (prometheus) for faster result
func (sm *StorageMinerAPI) SectorsSummary(ctx context.Context) (map[api.SectorState]int, error) {
sectorStats := sm.Miner.SectorSummary(ctx)
sectorStats := sm.Miner.SectorsSummary(ctx)
out := make(map[api.SectorState]int)

for st, count := range sectorStats {
Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/sealing.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (m *Sealing) TerminateSector(ctx context.Context, sid abi.SectorNumber) err
return m.sectors.Send(uint64(sid), SectorTerminate{})
}

func (m *Sealing) SectorSummary(ctx context.Context) map[SectorState]int64 {
func (m *Sealing) SectorsSummary(ctx context.Context) map[SectorState]int64 {
return m.stats.byState
}

Expand Down

0 comments on commit 258b1b9

Please sign in to comment.