From aa2104a21bd40b8e2a9bcaf23b3328f4b7b164ea Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 24 Jul 2018 15:45:21 -0700 Subject: [PATCH] Reclaim tokens before exiting to avoid leaking tokens --- src/bin/bench-tps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/bench-tps.rs b/src/bin/bench-tps.rs index d8f1d63e6e..211cefa911 100644 --- a/src/bin/bench-tps.rs +++ b/src/bin/bench-tps.rs @@ -374,9 +374,9 @@ fn main() { let time = Duration::new(time_sec, 0); let now = Instant::now(); let mut reclaim_tokens_back_to_source_account = false; - while now.elapsed() < time { + while now.elapsed() < time || reclaim_tokens_back_to_source_account { // ping-pong between source and destination accounts for each loop iteration - // this seems to be faster than trying to determine the balance of individaul + // this seems to be faster than trying to determine the balance of individual // accounts generate_and_send_txs( &mut client,