generated from alecodes/base-template
fix: gracefully handle no db password
This commit is contained in:
parent
29756b9578
commit
b22a5e5876
2 changed files with 17 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue