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

Commit

Permalink
Merge pull request #176 from suchapalaver/fix/fix-bug-in-commit-store…
Browse files Browse the repository at this point in the history
…-get-batch-by-transaction-method

Fix bug in commit_store get_batch_by_transaction
  • Loading branch information
vaporos authored Oct 10, 2023
2 parents aaacf8b + 10b4c5f commit 3fb31f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libsawtooth/src/journal/commit_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl CommitStore {
.batches()
.iter()
.find(|batch| {
!batch
batch
.transactions()
.iter()
.any(|txn| txn.header_signature() == transaction_id)
Expand Down
4 changes: 2 additions & 2 deletions libsawtooth/src/transact/database/lmdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,9 @@ mod tests {
})
}

fn run_test<T>(test: T) -> ()
fn run_test<T>(test: T)
where
T: FnOnce(&str) -> () + panic::UnwindSafe,
T: FnOnce(&str) + panic::UnwindSafe,
{
let dbpath = temp_db_path();

Expand Down

0 comments on commit 3fb31f4

Please sign in to comment.