Skip to content

Commit

Permalink
log unseal failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrenuj Bansal committed Aug 16, 2023
1 parent 38350b8 commit 9e69576
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/impl/storminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ func (sm *StorageMinerAPI) SectorUnseal(ctx context.Context, sectorNum abi.Secto
bgCtx := context.Background()

go func() {
sm.StorageMgr.SectorsUnsealPiece(bgCtx, sector, storiface.UnpaddedByteIndex(0), abi.UnpaddedPieceSize(0), status.Ticket.Value, status.CommD)
err := sm.StorageMgr.SectorsUnsealPiece(bgCtx, sector, storiface.UnpaddedByteIndex(0), abi.UnpaddedPieceSize(0), status.Ticket.Value, status.CommD)
if err != nil {
log.Errorf("unseal for sector %d failed: %+v", sectorNum, err)
}
}()

return nil
Expand Down

0 comments on commit 9e69576

Please sign in to comment.