Created
October 12, 2021 18:11
-
-
Save tjmaynes/930d2520dab3d251374a9390ff443cbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async fn get_health_status(data: web::Data<AppState>) -> HttpResponse { | |
let is_database_connected = sqlx::query("SELECT 1") | |
.fetch_one(&data.db_conn) | |
.await | |
.is_ok(); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment