mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-23 22:15:46 +00:00
fix: health endpoint crashing with embedded cache usage
This commit is contained in:
parent
8bed3cb352
commit
b6326603d1
@ -62,6 +62,7 @@ impl Health {
|
|||||||
#[my_codegen::get(path = "crate::V1_API_ROUTES.meta.health")]
|
#[my_codegen::get(path = "crate::V1_API_ROUTES.meta.health")]
|
||||||
async fn health(data: AppData) -> impl Responder {
|
async fn health(data: AppData) -> impl Responder {
|
||||||
let mut resp_builder = HealthBuilder::default();
|
let mut resp_builder = HealthBuilder::default();
|
||||||
|
resp_builder.redis(None);
|
||||||
|
|
||||||
resp_builder.db(data.db.ping().await);
|
resp_builder.db(data.db.ping().await);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user