move requestremove inside runSched

This commit is contained in:
LexLuthr
2022-08-04 02:00:24 +05:30
parent cf78fa99ee
commit c736dedfa6
9 changed files with 79 additions and 28 deletions
+2 -4
View File
@@ -56,7 +56,6 @@ import (
"github.com/filecoin-project/lotus/storage/pipeline/sealiface"
"github.com/filecoin-project/lotus/storage/sealer"
"github.com/filecoin-project/lotus/storage/sealer/fsutil"
"github.com/filecoin-project/lotus/storage/sealer/sealtasks"
"github.com/filecoin-project/lotus/storage/sealer/storiface"
"github.com/filecoin-project/lotus/storage/sectorblocks"
"github.com/filecoin-project/lotus/storage/wdpost"
@@ -463,9 +462,8 @@ func (sm *StorageMinerAPI) SealingAbort(ctx context.Context, call storiface.Call
return sm.StorageMgr.Abort(ctx, call)
}
func (sm *StorageMinerAPI) SealingRemoveRequest(ctx context.Context, sectorID abi.SectorID, task string, priority int) error {
rtask := sealtasks.TaskType(task)
return sm.StorageMgr.RemoveSchedRequest(ctx, sectorID, rtask, priority)
func (sm *StorageMinerAPI) SealingRemoveRequest(ctx context.Context, SchedId uuid.UUID) error {
return sm.StorageMgr.RemoveSchedRequest(ctx, SchedId)
}
func (sm *StorageMinerAPI) MarketImportDealData(ctx context.Context, propCid cid.Cid, path string) error {