Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 947701c

Browse files
committed
Avoid .unwrap() for the case of disabled tracer...
1 parent 3593ac5 commit 947701c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

banking-bench/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ fn main() {
600600
poh_service.join().unwrap();
601601
sleep(Duration::from_secs(1));
602602
debug!("waited for poh_service");
603-
tracer_thread.unwrap().join().unwrap().unwrap();
603+
if let Some(tracer_thread) = tracer_thread {
604+
tracer_thread.join().unwrap().unwrap();
605+
}
604606
}
605607
let _unused = Blockstore::destroy(&ledger_path);
606608
}

0 commit comments

Comments
 (0)