Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Sep 17, 2024
1 parent cf01629 commit db061bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/banking_simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ struct SimulatorThreads {
impl SimulatorThreads {
fn finish(self, sender_thread: EventSenderThread, retransmit_slots_sender: Sender<Slot>) {
info!("Sleeping a bit before signaling exit");
sleep(Duration::from_millis(100));
// this is needed for metrics flush
sleep(Duration::from_millis(3000));
self.exit.store(true, Ordering::Relaxed);

// The order is important. Consuming sender_thread by joining will drop some channels. That
Expand Down

0 comments on commit db061bb

Please sign in to comment.