Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: loselarry <[email protected]>
  • Loading branch information
loselarry committed Dec 24, 2024
1 parent bad8f0d commit eb6a6d5
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion boost_manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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<PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion boost_manager/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsRef<Path>>(path: Option<P>) -> Result<Self, config::ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion denylist/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsRef<Path>>(path: Option<P>) -> Result<Self> {
Expand Down
2 changes: 1 addition & 1 deletion file_store/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsRef<Path>>(path: P) -> Result<Self> {
Config::builder()
.add_source(File::with_name(&path.as_ref().to_string_lossy()))
Expand Down
2 changes: 1 addition & 1 deletion ingest/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsRef<Path>>(path: Option<P>) -> Result<Self, config::ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion iot_packet_verifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion iot_packet_verifier/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<impl AsRef<Path>>) -> Result<Self, ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion iot_verifier/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,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<P: AsRef<Path>>(path: Option<P>) -> Result<Self, config::ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion mobile_packet_verifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion mobile_packet_verifier/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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<impl AsRef<Path>>) -> Result<Self, ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<path::PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,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<P: AsRef<Path>>(path: Option<P>) -> Result<Self, ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion poc_entropy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<path::PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion poc_entropy/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsRef<Path>>(path: Option<P>) -> Result<Self, config::ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion price/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<P: AsRef<Path>>(path: Option<P>) -> Result<Self, config::ConfigError> {
Expand Down
2 changes: 1 addition & 1 deletion reward_index/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use tokio::signal;
#[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<PathBuf>,
Expand Down
2 changes: 1 addition & 1 deletion reward_index/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 "MI_". For example "MI_DATABASE_URL"
/// will override the data base url.
pub fn new<P: AsRef<Path>>(path: Option<P>) -> Result<Self, config::ConfigError> {
Expand Down

0 comments on commit eb6a6d5

Please sign in to comment.