From 84ae6ac30c4981572915d9d9cbde768892bee047 Mon Sep 17 00:00:00 2001 From: loselarry Date: Wed, 2 Jul 2025 14:18:08 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: loselarry --- boost_manager/src/main.rs | 2 +- boost_manager/src/settings.rs | 2 +- denylist/src/settings.rs | 2 +- file_store/src/settings.rs | 2 +- ingest/src/settings.rs | 2 +- iot_packet_verifier/src/main.rs | 2 +- iot_packet_verifier/src/settings.rs | 2 +- iot_verifier/src/settings.rs | 2 +- mobile_packet_verifier/src/main.rs | 2 +- mobile_packet_verifier/src/settings.rs | 2 +- mobile_verifier/src/main.rs | 2 +- mobile_verifier/src/settings.rs | 2 +- poc_entropy/src/main.rs | 2 +- poc_entropy/src/settings.rs | 2 +- price/src/settings.rs | 2 +- reward_index/src/main.rs | 2 +- reward_index/src/settings.rs | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/boost_manager/src/main.rs b/boost_manager/src/main.rs index 7e4f45620..ef9bf3f4d 100644 --- a/boost_manager/src/main.rs +++ b/boost_manager/src/main.rs @@ -24,7 +24,7 @@ use task_manager::TaskManager; #[clap(about = "Helium Boost Manager")] pub struct Cli { /// Optional configuration file to use. If present the toml file at the - /// given path will be loaded. Environemnt variables can override the + /// given path will be loaded. Environment variables can override the /// settins in the given file. #[clap(short = 'c')] config: Option, diff --git a/boost_manager/src/settings.rs b/boost_manager/src/settings.rs index 809457d6b..68df20709 100644 --- a/boost_manager/src/settings.rs +++ b/boost_manager/src/settings.rs @@ -70,7 +70,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "MI_". For example "MI_DATABASE_URL" /// will override the data base url. pub fn new>(path: Option

) -> Result { diff --git a/denylist/src/settings.rs b/denylist/src/settings.rs index 8873606a4..8f9090ad6 100644 --- a/denylist/src/settings.rs +++ b/denylist/src/settings.rs @@ -39,7 +39,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "DENYLIST_". For example /// "DENYLIST_LOG" will override the log setting. pub fn new>(path: Option

) -> Result { diff --git a/file_store/src/settings.rs b/file_store/src/settings.rs index 2573a5105..40a705a17 100644 --- a/file_store/src/settings.rs +++ b/file_store/src/settings.rs @@ -25,7 +25,7 @@ pub fn default_region() -> String { impl Settings { /// Load Settings from a given path. /// - /// Environemnt overrides are not suppported for file_store cli commands + /// Environment overrides are not suppported for file_store cli commands pub fn new>(path: P) -> Result { Config::builder() .add_source(File::with_name(&path.as_ref().to_string_lossy())) diff --git a/ingest/src/settings.rs b/ingest/src/settings.rs index c135080ca..d63895c4b 100644 --- a/ingest/src/settings.rs +++ b/ingest/src/settings.rs @@ -79,7 +79,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "ENTROPY_". For example /// "ENTROPY_LOG" will override the log setting. pub fn new>(path: Option

) -> Result { diff --git a/iot_packet_verifier/src/main.rs b/iot_packet_verifier/src/main.rs index f84ff8dac..3e108740c 100644 --- a/iot_packet_verifier/src/main.rs +++ b/iot_packet_verifier/src/main.rs @@ -8,7 +8,7 @@ use std::path::PathBuf; #[clap(about = "Helium IOT Packer Verifier Server")] pub struct Cli { /// Optional configuration file to use. If present the toml file at the - /// given path will be loaded. Environemnt variables can override the + /// given path will be loaded. Environment variables can override the /// settins in the given file. #[clap(short = 'c')] config: Option, diff --git a/iot_packet_verifier/src/settings.rs b/iot_packet_verifier/src/settings.rs index 1ba9f6845..4d88299da 100644 --- a/iot_packet_verifier/src/settings.rs +++ b/iot_packet_verifier/src/settings.rs @@ -60,7 +60,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "VERIFY_". For example /// "VERIFY_DATABASE_URL" will override the data base url. pub fn new(path: Option>) -> Result { diff --git a/iot_verifier/src/settings.rs b/iot_verifier/src/settings.rs index 49f24bc84..f22c4c516 100644 --- a/iot_verifier/src/settings.rs +++ b/iot_verifier/src/settings.rs @@ -232,7 +232,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "VERIFY_". For example /// "VERIFY_DATABASE_URL" will override the data base url. pub fn new>(path: Option

) -> Result { diff --git a/mobile_packet_verifier/src/main.rs b/mobile_packet_verifier/src/main.rs index ede970221..b27d9e140 100644 --- a/mobile_packet_verifier/src/main.rs +++ b/mobile_packet_verifier/src/main.rs @@ -8,7 +8,7 @@ use std::path::PathBuf; #[clap(about = "Helium Mobile Packer Verifier Server")] pub struct Cli { /// Optional configuration file to use. If present the toml file at the - /// given path will be loaded. Environemnt variables can override the + /// given path will be loaded. Environment variables can override the /// settins in the given file. #[clap(short = 'c')] config: Option, diff --git a/mobile_packet_verifier/src/settings.rs b/mobile_packet_verifier/src/settings.rs index 67d15d150..4ec3d5946 100644 --- a/mobile_packet_verifier/src/settings.rs +++ b/mobile_packet_verifier/src/settings.rs @@ -88,7 +88,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "VERIFY_". For example /// "VERIFY_DATABASE_URL" will override the data base url. pub fn new(path: Option>) -> Result { diff --git a/mobile_verifier/src/main.rs b/mobile_verifier/src/main.rs index a112d55ce..f87238d8c 100644 --- a/mobile_verifier/src/main.rs +++ b/mobile_verifier/src/main.rs @@ -11,7 +11,7 @@ use std::path; #[clap(about = "Helium Mobile Share Server")] pub struct Cli { /// Optional configuration file to use. If present the toml file at the - /// given path will be loaded. Environemnt variables can override the + /// given path will be loaded. Environment variables can override the /// settins in the given file. #[clap(short = 'c')] config: Option, diff --git a/mobile_verifier/src/settings.rs b/mobile_verifier/src/settings.rs index fb52e6768..4c747d985 100644 --- a/mobile_verifier/src/settings.rs +++ b/mobile_verifier/src/settings.rs @@ -82,7 +82,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "VERIFY_". For example /// "VERIFY_DATABASE_URL" will override the data base url. pub fn new>(path: Option

) -> Result { diff --git a/poc_entropy/src/main.rs b/poc_entropy/src/main.rs index ba0c5f171..fedb727b1 100644 --- a/poc_entropy/src/main.rs +++ b/poc_entropy/src/main.rs @@ -17,7 +17,7 @@ const ENTROPY_SINK_ROLL_SECS: u64 = 2 * 60; #[clap(about = "Helium Entropy Server")] pub struct Cli { /// Optional configuration file to use. If present the toml file at the - /// given path will be loaded. Environemnt variables can override the + /// given path will be loaded. Environment variables can override the /// settins in the given file. #[clap(short = 'c')] config: Option, diff --git a/poc_entropy/src/settings.rs b/poc_entropy/src/settings.rs index 126553c5a..37d632523 100644 --- a/poc_entropy/src/settings.rs +++ b/poc_entropy/src/settings.rs @@ -40,7 +40,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "ENTROPY_". For example /// "ENTROPY_LOG" will override the log setting. pub fn new>(path: Option

) -> Result { diff --git a/price/src/settings.rs b/price/src/settings.rs index da4b27413..ea9cafe9e 100644 --- a/price/src/settings.rs +++ b/price/src/settings.rs @@ -62,7 +62,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "price_". For example /// "price_LOG_" will override the log setting. pub fn new>(path: Option

) -> Result { diff --git a/reward_index/src/main.rs b/reward_index/src/main.rs index 6e62dbc4c..a7b16b56c 100644 --- a/reward_index/src/main.rs +++ b/reward_index/src/main.rs @@ -10,7 +10,7 @@ use task_manager::TaskManager; #[clap(about = "Helium Mobile Indexer")] pub struct Cli { /// Optional configuration file to use. If present the toml file at the - /// given path will be loaded. Environemnt variables can override the + /// given path will be loaded. Environment variables can override the /// settins in the given file. #[clap(short = 'c')] config: Option, diff --git a/reward_index/src/settings.rs b/reward_index/src/settings.rs index 61c73512c..62b9e6728 100644 --- a/reward_index/src/settings.rs +++ b/reward_index/src/settings.rs @@ -62,7 +62,7 @@ impl Settings { /// Load Settings from a given path. Settings are loaded from a given /// optional path and can be overriden with environment variables. /// - /// Environemnt overrides have the same name as the entries in the settings + /// Environment overrides have the same name as the entries in the settings /// file in uppercase and prefixed with "MI_". For example "MI_DATABASE_URL" /// will override the data base url. pub fn new>(path: Option

) -> Result {