Merge pull request #49 from filecoin-project/fix/unseal-close-correct
ffiwrapper: Close the correct end of the pipe in unseal
This commit is contained in:
commit
cb2dfb2e11
@ -329,7 +329,7 @@ func (sb *Sealer) UnsealPiece(ctx context.Context, sector abi.SectorID, offset s
|
||||
uint64(at.Unpadded()),
|
||||
uint64(abi.PaddedPieceSize(piece.Len).Unpadded()))
|
||||
|
||||
_ = opr.Close()
|
||||
_ = opw.Close()
|
||||
|
||||
if err != nil {
|
||||
return xerrors.Errorf("unseal range: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user