Skip to content

Commit

Permalink
fix to pass build
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Oct 26, 2023
1 parent ea32847 commit aa5e45c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uuid = { version = "1.3.0", features = [
"serde",
] }
reqwest = { version = "0.11", features = ["json"] }
mostro-core = "0.3.7"
mostro-core = "0.3.8"
#tokio-cron-scheduler = "*"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
Expand Down
3 changes: 2 additions & 1 deletion src/cli/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ impl Settings {
})
}

// Getter functions for struct MOSTRO unwrap here should be safe because we yet deserialized it.
pub fn get_ln() -> Lightning {
MOSTRO_CONFIG.get().unwrap().lightning.clone()
}
Expand Down Expand Up @@ -226,7 +227,7 @@ pub fn init_default_dir(config_path: Option<String>) -> Result<PathBuf, MostroSe
settings_dir_default.push(home_dir);
} else {
// Get $HOME from env
let tmp = std::env::var("HOMEX").map_err(|source| MostroSettingsError {
let tmp = std::env::var("HOME").map_err(|source| MostroSettingsError {
path: None,
kind: FromConfigErrorKind::Env { source },
})?;
Expand Down

0 comments on commit aa5e45c

Please sign in to comment.