Skip to content

Commit

Permalink
remove extra release
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Apr 30, 2024
1 parent ccc704c commit d4d92cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions curiosrc/ffi/sdr_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,7 @@ func (sb *SealCalls) PreFetch(ctx context.Context, sector storiface.SectorRef, t
return
}

func (sb *SealCalls) TreeD(ctx context.Context, sector storiface.SectorRef, unsealed cid.Cid, size abi.PaddedPieceSize, data io.Reader, unpaddedData bool, fspaths, pathIDs storiface.SectorPaths, release func()) error {
defer release()
func (sb *SealCalls) TreeD(ctx context.Context, sector storiface.SectorRef, unsealed cid.Cid, size abi.PaddedPieceSize, data io.Reader, unpaddedData bool, fspaths, pathIDs storiface.SectorPaths) error {
var err error
defer func() {
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion curiosrc/seal/task_treed.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (t *TreeDTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done
}

// Generate Tree D
err = t.sc.TreeD(ctx, sref, commd, abi.PaddedPieceSize(ssize), dataReader, unpaddedData, fsPaths, pathIds, release)
err = t.sc.TreeD(ctx, sref, commd, abi.PaddedPieceSize(ssize), dataReader, unpaddedData, fsPaths, pathIds)
if err != nil {
return false, xerrors.Errorf("failed to generate TreeD: %w", err)
}
Expand Down

0 comments on commit d4d92cf

Please sign in to comment.