feat: sealer: allow users to abort in-flight snap upgrades

This commit is contained in:
Aayush
2022-01-25 13:01:51 -05:00
parent e17ae2eaf4
commit 1b18236f91
12 changed files with 93 additions and 0 deletions
+4
View File
@@ -384,6 +384,10 @@ func (sm *StorageMinerAPI) SectorMarkForUpgrade(ctx context.Context, id abi.Sect
return sm.Miner.MarkForUpgrade(ctx, id, snap)
}
func (sm *StorageMinerAPI) SectorAbortUpgrade(ctx context.Context, number abi.SectorNumber) error {
return sm.Miner.SectorAbortUpgrade(number)
}
func (sm *StorageMinerAPI) SectorCommitFlush(ctx context.Context) ([]sealiface.CommitBatchRes, error) {
return sm.Miner.CommitFlush(ctx)
}