From 3e73fb923332d9e18594673897714476c1353e2e Mon Sep 17 00:00:00 2001 From: Stephen Akridge Date: Tue, 8 May 2018 15:21:28 -0700 Subject: [PATCH] Trust the recorder not to give us more than we can serialize Also run client for 10 seconds, 5 is bit too short --- src/accountant_skel.rs | 7 +++---- src/bin/client-demo.rs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/accountant_skel.rs b/src/accountant_skel.rs index b4645dc89662d0..87407f5f98e8a0 100644 --- a/src/accountant_skel.rs +++ b/src/accountant_skel.rs @@ -160,10 +160,9 @@ impl AccountantSkel { // See that we made progress and a single // vec of Events wasn't too big for a single packet if end <= start { - eprintln!("Event too big for the blob!"); - start += 1; - end = start; - continue; + // Trust the recorder to not package more than we can + // serialize + end += 1; } let b = blob_recycler.allocate(); diff --git a/src/bin/client-demo.rs b/src/bin/client-demo.rs index 4c868dfcf0c614..a4585dbac5aec9 100644 --- a/src/bin/client-demo.rs +++ b/src/bin/client-demo.rs @@ -137,7 +137,7 @@ fn main() { println!("Waiting for transactions to complete...",); let mut tx_count; - for _ in 0..5 { + for _ in 0..10 { tx_count = acc.transaction_count(); duration = now.elapsed(); let txs = tx_count - initial_tx_count;