Skip to content

Commit

Permalink
delete pub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirreke committed Feb 16, 2024
1 parent ecb8c55 commit 965920e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/append/rolling_file/policy/compound/trigger/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@ use crate::config::{Deserialize, Deserializers};
#[serde(deny_unknown_fields)]
pub struct TimeTriggerConfig {
/// The date/time interval between log file rolls.
pub interval: TimeTriggerInterval,
interval: TimeTriggerInterval,
/// Whether to modulate the interval.
#[serde(default)]
pub modulate: bool,
modulate: bool,
/// The maximum random delay in seconds.
#[serde(default)]
pub max_random_delay: u64,
max_random_delay: u64,
}

/// A trigger which rolls the log once it has passed a certain time.
#[derive(Debug)]
pub struct TimeTrigger {
/// The date/time interval between log file rolls.
pub interval: TimeTriggerInterval,
interval: TimeTriggerInterval,
/// Whether to modulate the interval.
pub modulate: bool,
modulate: bool,
/// The maximum random delay in seconds.
pub max_random_delay: u64,
max_random_delay: u64,
next_roll_time: RwLock<DateTime<Local>>,
initial: Once,
}
Expand Down

0 comments on commit 965920e

Please sign in to comment.