Skip to content

Commit

Permalink
Remove unused settings
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed May 15, 2024
1 parent 24654ce commit 01d9682
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions iot_verifier/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ pub struct Settings {
/// beaconing bucket sizes
#[serde(with = "humantime_serde", default = "default_beacon_interval")]
pub beacon_interval: Duration,
// FIXME: unused
/// Trigger interval for generating a transmit scaling map
#[serde(with = "humantime_serde", default = "default_transmit_scale_interval")]
pub transmit_scale_interval: Duration,
// roll up time defined in the ingestors ( in seconds )
// ie the time after which they will write out files to s3
// this will be used when padding out the witness
Expand All @@ -70,10 +66,6 @@ pub struct Settings {
/// cadence for how often to look for poc reports from s3 buckets
#[serde(with = "humantime_serde", default = "default_poc_loader_poll_time")]
pub poc_loader_poll_time: Duration,
// FIXME: unused
/// the lifespan of a piece of entropy
#[serde(with = "humantime_serde", default = "default_entropy_lifespan ")]
pub entropy_lifespan: Duration,
/// max window age for the poc report loader ( in seconds )
/// the starting point of the window will never be older than now - max age
#[serde(
Expand Down Expand Up @@ -123,10 +115,6 @@ fn default_entropy_interval() -> Duration {
humantime::parse_duration("5 minutes").unwrap()
}

fn default_entropy_lifespan() -> Duration {
humantime::parse_duration("5 minutes").unwrap()
}

fn default_poc_loader_window_width() -> Duration {
humantime::parse_duration("5 minutes").unwrap()
}
Expand All @@ -149,10 +137,6 @@ fn default_beacon_interval() -> Duration {
humantime::parse_duration("6 hours").unwrap()
}

fn default_transmit_scale_interval() -> Duration {
humantime::parse_duration("30 minutes").unwrap()
}

fn default_log() -> String {
"iot_verifier=debug,poc_store=info".to_string()
}
Expand Down Expand Up @@ -228,7 +212,6 @@ impl Settings {
}

pub fn beacon_interval(&self) -> anyhow::Result<Duration> {
// FIXME:
// validate the beacon_interval value is a factor of 24, if not bail out
if (24 * 60 * 60) % self.beacon_interval.as_secs() != 0 {
bail!("beacon interval is not a factor of 24")
Expand Down

0 comments on commit 01d9682

Please sign in to comment.