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

Commit 3fb31f4

Browse files
authored
Merge pull request #176 from suchapalaver/fix/fix-bug-in-commit-store-get-batch-by-transaction-method
Fix bug in commit_store get_batch_by_transaction
2 parents aaacf8b + 10b4c5f commit 3fb31f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libsawtooth/src/journal/commit_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl CommitStore {
324324
.batches()
325325
.iter()
326326
.find(|batch| {
327-
!batch
327+
batch
328328
.transactions()
329329
.iter()
330330
.any(|txn| txn.header_signature() == transaction_id)

libsawtooth/src/transact/database/lmdb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,9 @@ mod tests {
533533
})
534534
}
535535

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

0 commit comments

Comments
 (0)