diff --git a/extern/storage-sealing/garbage.go b/extern/storage-sealing/garbage.go index caf371806..fc8e86c55 100644 --- a/extern/storage-sealing/garbage.go +++ b/extern/storage-sealing/garbage.go @@ -54,13 +54,14 @@ func (m *Sealing) PledgeSector() error { log.Errorf("%+v", err) return } - err = m.sealer.NewSector(ctx, m.minerSector(sid)) + sectorID := m.minerSector(sid) + err = m.sealer.NewSector(ctx, sectorID) if err != nil { log.Errorf("%+v", err) return } - pieces, err := m.pledgeSector(ctx, m.minerSector(sid), []abi.UnpaddedPieceSize{}, size) + pieces, err := m.pledgeSector(ctx, sectorID, []abi.UnpaddedPieceSize{}, size) if err != nil { log.Errorf("%+v", err) return