From eadf6b35577e47a0ebed94432064e24703a5936a Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Fri, 19 Jan 2024 14:18:45 +0100 Subject: [PATCH] Remove sleep in multiple daemons as compiling dora cli is fast enough --- examples/multiple-daemons/run.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/multiple-daemons/run.rs b/examples/multiple-daemons/run.rs index d8fb13f6..4b1417cc 100644 --- a/examples/multiple-daemons/run.rs +++ b/examples/multiple-daemons/run.rs @@ -46,8 +46,6 @@ async fn main() -> eyre::Result<()> { tasks.spawn(daemon_a); tasks.spawn(daemon_b); - std::thread::sleep(Duration::from_secs(20)); - // wait until both daemons are connected tracing::info!("waiting until daemons are connected to coordinator"); let mut retries = 0; loop {