From 72acfb93627918f6fc9c68a5bf5b4ecf34d07a23 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 22 Aug 2024 14:19:42 +0200 Subject: test(benches/update): Init --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index cfd6adc..c223140 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,7 +53,7 @@ async fn main() -> Result<()> { .init() .expect("Let's just hope that this does not panic"); - let app = App::new().await?; + let app = App::new(args.db_path.unwrap_or(constants::database()?)).await?; match args.command.unwrap_or(Command::default()) { Command::Download { force } => { @@ -61,7 +61,9 @@ async fn main() -> Result<()> { invalidate(&app, true).await?; } - download::Downloader::new().consume(&app).await?; + download::Downloader::new() + .consume(Arc::new(app), max_cache_size) + .await?; } Command::Select { cmd } => { let cmd = cmd.unwrap_or(SelectCommand::default()); -- cgit 1.4.1