fix: gracefully handle no db password

This commit is contained in:
Alexander Navarro 2025-03-17 14:56:20 -03:00
parent 29756b9578
commit b22a5e5876
2 changed files with 17 additions and 8 deletions

View file

@ -62,7 +62,7 @@ async fn main() -> Result<()> {
let pool = PgPoolOptions::new()
.max_connections(5)
.connect(&config.db.generate_db_string(false))
.connect(&config.db.generate_db_string(false)?)
.await?;
let (tx_state, tx_layer) = Tx::setup(pool);