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:
Łukasz Magiera 2020-06-15 21:11:57 +02:00 committed by GitHub
commit cb2dfb2e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)