mirror of
https://github.com/OMGeeky/backup_config.git
synced 2026-01-23 03:38:50 +01:00
add max_items_to_process
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user