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