Skip to content

Commit

Permalink
Fix config prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xSke committed Feb 9, 2024
1 parent 6763a21 commit 8b922ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async fn pull(
fn load_config() -> anyhow::Result<Config> {
config::ConfigBuilder::<DefaultState>::default()
.add_source(config::File::new("config", FileFormat::Toml).required(false))
.add_source(config::Environment::with_prefix("PK_AVATAR").separator("_"))
.add_source(config::Environment::with_prefix("PK_AVATAR").prefix_separator("__").separator("_"))
.build()?
.try_deserialize::<Config>()
.map_err(Into::into)
Expand Down

0 comments on commit 8b922ee

Please sign in to comment.