From 258b1b921056e9f674a3e92e9b2dc8cf31609b08 Mon Sep 17 00:00:00 2001 From: Florian RUEN Date: Wed, 25 Oct 2023 19:22:20 +0200 Subject: [PATCH] fix: update method name from SectorSummary to SectorsSummary --- node/impl/storminer.go | 4 ++-- storage/pipeline/sealing.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/impl/storminer.go b/node/impl/storminer.go index 7355396bab2..b152b2ff0ee 100644 --- a/node/impl/storminer.go +++ b/node/impl/storminer.go @@ -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 { diff --git a/storage/pipeline/sealing.go b/storage/pipeline/sealing.go index bee306e2b4f..124dca9fc81 100644 --- a/storage/pipeline/sealing.go +++ b/storage/pipeline/sealing.go @@ -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 }