From b5145c5d4ef674016f4e4217f67c2969a8dee962 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 16 Feb 2025 09:50:15 +0100 Subject: chore(yt): Change the type of `max_backlog` to `usize` --- yt/src/cli.rs | 2 +- yt/src/config/default.rs | 2 +- yt/src/config/definitions.rs | 2 +- yt/src/config/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yt/src/cli.rs b/yt/src/cli.rs index 6e6dd3a..3afce3f 100644 --- a/yt/src/cli.rs +++ b/yt/src/cli.rs @@ -118,7 +118,7 @@ pub enum Command { Update { #[arg(short, long)] /// The number of videos to updating - max_backlog: Option, + max_backlog: Option, #[arg(short, long)] /// The subscriptions to update (can be given multiple times) diff --git a/yt/src/config/default.rs b/yt/src/config/default.rs index 9189545..7c61d6d 100644 --- a/yt/src/config/default.rs +++ b/yt/src/config/default.rs @@ -67,7 +67,7 @@ pub(crate) mod watch { } pub(crate) mod update { - pub(crate) fn max_backlog() -> u32 { + pub(crate) fn max_backlog() -> usize { 20 } } diff --git a/yt/src/config/definitions.rs b/yt/src/config/definitions.rs index 9f8b971..106c261 100644 --- a/yt/src/config/definitions.rs +++ b/yt/src/config/definitions.rs @@ -32,7 +32,7 @@ pub(crate) struct GlobalConfig { #[derive(Debug, Deserialize, PartialEq, Clone, Copy)] #[serde(deny_unknown_fields)] pub(crate) struct UpdateConfig { - pub max_backlog: Option, + pub max_backlog: Option, } #[derive(Debug, Deserialize, PartialEq, Clone)] diff --git a/yt/src/config/mod.rs b/yt/src/config/mod.rs index be99caa..f4bbfca 100644 --- a/yt/src/config/mod.rs +++ b/yt/src/config/mod.rs @@ -38,7 +38,7 @@ pub struct GlobalConfig { #[derive(Serialize, Debug)] #[allow(missing_copy_implementations)] pub struct UpdateConfig { - pub max_backlog: u32, + pub max_backlog: usize, } #[derive(Serialize, Debug)] #[allow(missing_copy_implementations)] -- cgit 1.4.1