diff --git a/src/main.rs b/src/main.rs index 13490b1..d537231 100644 --- a/src/main.rs +++ b/src/main.rs @@ -127,7 +127,7 @@ async fn main() -> Result<()> { #[cfg(not(feature = "prod"))] let chunk_db = Arc::new(FSChunkDB::new().unwrap()); - chunk_db.garbage_collect(meta_db.clone()).await?; + tokio::task::spawn(async move { chunk_db.garbage_collect(meta_db.clone()).await? }); let internal_tcp_addr = "[::]:9990".to_socket_addrs().unwrap().next().unwrap();