about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-16 09:50:15 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-16 09:50:15 +0100
commitb5145c5d4ef674016f4e4217f67c2969a8dee962 (patch)
tree06d4386f1798f11122767778886010cae52a94b8
parentfix(crates/yt_dlp/wrappers/info_json): Serialize the `InfoType`s with their c... (diff)
downloadyt-b5145c5d4ef674016f4e4217f67c2969a8dee962.zip
chore(yt): Change the type of `max_backlog` to `usize`
-rw-r--r--yt/src/cli.rs2
-rw-r--r--yt/src/config/default.rs2
-rw-r--r--yt/src/config/definitions.rs2
-rw-r--r--yt/src/config/mod.rs2
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)]