From 01d9682ef0bd4d7f59ce399de0a7e7743833902c Mon Sep 17 00:00:00 2001 From: Michael Jeffrey Date: Wed, 15 May 2024 09:09:45 -0700 Subject: [PATCH] Remove unused settings --- iot_verifier/src/settings.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/iot_verifier/src/settings.rs b/iot_verifier/src/settings.rs index 34993eb9c..8a8af7a8c 100644 --- a/iot_verifier/src/settings.rs +++ b/iot_verifier/src/settings.rs @@ -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 @@ -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( @@ -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() } @@ -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() } @@ -228,7 +212,6 @@ impl Settings { } pub fn beacon_interval(&self) -> anyhow::Result { - // 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")