From e530ff93c437d5a843687ad17c6e5353a7cd6421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 15 Jun 2020 19:59:20 +0200 Subject: [PATCH] ffiwrapper: Close the correct end of the pipe in unseal --- ffiwrapper/sealer_cgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffiwrapper/sealer_cgo.go b/ffiwrapper/sealer_cgo.go index 0beb9b86c..d17aed272 100644 --- a/ffiwrapper/sealer_cgo.go +++ b/ffiwrapper/sealer_cgo.go @@ -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)