Skip to content

Commit

Permalink
Avoid .unwrap() for the case of disabled tracer...
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jan 25, 2023
1 parent b7ac53b commit 84e9520
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion banking-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ fn main() {
poh_service.join().unwrap();
sleep(Duration::from_secs(1));
debug!("waited for poh_service");
tracer_thread.unwrap().join().unwrap().unwrap();
if let Some(tracer_thread) = tracer_thread {
tracer_thread.join().unwrap().unwrap();
}
}
let _unused = Blockstore::destroy(&ledger_path);
}

0 comments on commit 84e9520

Please sign in to comment.