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

Fix bug in commit_store get_batch_by_transaction #176

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading