Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
refactor: use function instead of closure
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohba1 committed Jan 23, 2024
1 parent 87bd6ae commit 6a3659d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pub async fn stream_blocks<R: Read, W: Write>(
});

let transactions_check_process = spawn_check(&block, |b| {
check_transaction_root(b).map_err(|e| CheckError::TransactionError(e))
check_transaction_root(b).map_err(CheckError::TransactionError)
});

let joint_return = join![receipts_check_process, transactions_check_process];
Expand Down

0 comments on commit 6a3659d

Please sign in to comment.