summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs
index 4a9e9a7..9644138 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -6,7 +6,7 @@ use tokio_postgres::{Client, NoTls};
pub async fn setup() -> Result<Client, AppError> {
let database_url = &crate::config::CONFIG.database_url;
- let (client, connection) = tokio_postgres::connect(database_url, NoTls).await.unwrap();
+ let (client, connection) = tokio_postgres::connect(database_url, NoTls).await?;
// Spawn a new task to run the connection to the database
tokio::spawn(async move {