fixed separator
This commit is contained in:
@@ -15,7 +15,7 @@ impl AppConfig {
|
|||||||
dotenvy::dotenv().ok();
|
dotenvy::dotenv().ok();
|
||||||
|
|
||||||
let cfg = Config::builder()
|
let cfg = Config::builder()
|
||||||
.add_source(config::Environment::with_prefix("WATCHER").separator("_"))
|
.add_source(config::Environment::with_prefix("WATCHER").separator("__"))
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
println!("Configuration loaded: {cfg:#?}");
|
println!("Configuration loaded: {cfg:#?}");
|
||||||
|
Reference in New Issue
Block a user