Fix reading postgres config from env

This commit is contained in:
Riordan Panayides 2023-05-18 19:41:17 +01:00
parent 5b61f3d949
commit 872e6fcdb2
1 changed files with 1 additions and 0 deletions

View File

@ -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()
}