summaryrefslogtreecommitdiffstats
path: root/src/db.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-13 12:48:47 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-13 12:48:47 +0000
commit9f7571078ac7fbffe1ca343e245f41646b907bc9 (patch)
tree3026c76d4c5bcc3a862a4b831834e03ce63f8a0c /src/db.rs
parent63f36474f7a6b7d72dedce651ce05299a7edab11 (diff)
Fix reference to database_url
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 f157187..3426e89 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -12,7 +12,7 @@ pub async fn setup() -> Result<(), AppError> {
let database_url = &crate::config::CONFIG.database_url;
unsafe {
- CONNECTION = Some(PgPool::connect(&database_url).await?);
+ CONNECTION = Some(PgPool::connect(database_url).await?);
}
Ok(())