From 86e9c745681a6cde96e1089b9a70f7cd2397a720 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 13:58:40 +0200 Subject: fix(treewide): Actually use the values from the config --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index a6766f6..a30dc24 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,6 +64,7 @@ async fn main() -> Result<()> { force, max_cache_size, } => { + let max_cache_size = max_cache_size.unwrap_or(app.config.download.max_cache_size); info!("max cache size: '{}'", max_cache_size); if force { @@ -97,7 +98,9 @@ async fn main() -> Result<()> { } } - update::update(&app, max_backlog, subscriptions, args.verbosity).await?; + let max_backlog = max_backlog.unwrap_or(app.config.update.max_backlog); + + update::update(&app, max_backlog, subscriptions, verbosity).await?; } Command::Subscriptions { cmd } => match cmd { -- cgit 1.4.1