Skip to content

Commit

Permalink
Run rustfmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jul 16, 2024
1 parent ac56cef commit f86bc68
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deepwell/src/endpoints/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ use wikidot_normalize::normalize;

async fn postgres_check(ctx: &ServiceContext<'_>) -> Result<()> {
let mut txn = ctx.sqlx().await?;
let _ = sqlx::query!(r"SELECT 1 AS x")
.fetch_one(&mut *txn)
.await?;

let _ = sqlx::query!(r"SELECT 1 AS x").fetch_one(&mut *txn).await?;
txn.commit().await?;

debug!("Successfully pinged Postgres");
Ok(())
}
Expand Down

0 comments on commit f86bc68

Please sign in to comment.