ffiwrapper: Close the correct end of the pipe in unseal

This commit is contained in:
Łukasz Magiera 2020-06-15 19:59:20 +02:00
parent 728a47ab99
commit e530ff93c4

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)