diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 13:58:40 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 13:58:40 +0200 |
commit | 86e9c745681a6cde96e1089b9a70f7cd2397a720 (patch) | |
tree | 6e45077a74f0d780be455ac95dbed36f715fc727 /src/main.rs | |
parent | feat(watch/events): Add further understood script-messages (diff) | |
download | yt-86e9c745681a6cde96e1089b9a70f7cd2397a720.tar.gz yt-86e9c745681a6cde96e1089b9a70f7cd2397a720.zip |
fix(treewide): Actually use the values from the config
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |