diff options
-rw-r--r-- | yt/src/cli.rs | 2 | ||||
-rw-r--r-- | yt/src/config/default.rs | 2 | ||||
-rw-r--r-- | yt/src/config/definitions.rs | 2 | ||||
-rw-r--r-- | 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<u32>, + max_backlog: Option<usize>, #[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<u32>, + pub max_backlog: Option<usize>, } #[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)] |