diff --git a/crates/node/src/main.rs b/crates/node/src/main.rs index fee27708..0d8e609d 100644 --- a/crates/node/src/main.rs +++ b/crates/node/src/main.rs @@ -20,7 +20,6 @@ use std::{ net::ToSocketAddrs, path::PathBuf, sync::Arc, - thread::sleep, time::Duration, }; use tokio::sync::mpsc; @@ -225,7 +224,7 @@ async fn run(config: Arc) -> Result<()> { } // Sync the whitelist every 10min. - sleep(Duration::from_secs(600)); + tokio::time::sleep(Duration::from_secs(600)).await; } }); }