Fix reading postgres config from env
This commit is contained in:
parent
5b61f3d949
commit
872e6fcdb2
|
@ -29,6 +29,7 @@ impl PgConfig {
|
|||
pub fn from_env() -> Result<Self, config::ConfigError> {
|
||||
config::Config::builder()
|
||||
.add_source(config::Environment::default().separator("_"))
|
||||
.add_source(config::Environment::default())
|
||||
.build()?
|
||||
.try_deserialize()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue