mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-02-16 16:39:46 +03:00
Merge pull request #125 from mCaptcha/fix-embedded-cache-health
fix: health endpoint crashing with embedded cache usage
This commit is contained in:
commit
26ad05d284
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue