add max_items_to_process

This commit is contained in:
OMGeeky
2024-04-23 21:48:26 +02:00
parent c42b6fca97
commit 60092672b4
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "twba-backup-config"
version = "0.1.5"
version = "0.1.6"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -14,6 +14,11 @@ pub struct Conf {
/// The folder where all the logs will be stored.
#[config(default = "/var/tmp/twba/logs/")]
pub log_folder: String,
/// How many items should be processed in a single run.
///
/// After this number is reached the program will stop and wait for the next run.
#[config(default = 5)]
pub max_items_to_process: u64,
#[config(nested)]
pub twitch: Twitch,