Skip to content

Commit 6ec65c8

Browse files
committed
Actually increment by transaction count.
1 parent 90119df commit 6ec65c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/tests/timeboost/transaction_order.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ async fn transaction_order() {
9494
let value = r.recv().await.unwrap();
9595
*map.entry(value).or_default() += 1
9696
}
97-
if let Some(trxs) = map.values().find(|n| **n >= quorum && **n <= num.get()) {
98-
transactions += trxs;
97+
if let Some(((_, trxs), _)) = map.iter().find(|(_, n)| **n >= quorum && **n <= num.get()) {
98+
transactions += trxs.len();
9999
continue;
100100
}
101101
for ((r, trxs), k) in map {

0 commit comments

Comments
 (0)