Merge pull request #125 from mCaptcha/fix-embedded-cache-health

fix: health endpoint crashing with embedded cache usage
This commit is contained in:
Aravinth Manivannan 2023-12-09 01:32:21 +05:30 committed by GitHub
commit 26ad05d284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,7 @@ impl Health {
#[my_codegen::get(path = "crate::V1_API_ROUTES.meta.health")]
async fn health(data: AppData) -> impl Responder {
let mut resp_builder = HealthBuilder::default();
resp_builder.redis(None);
resp_builder.db(data.db.ping().await);