mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
chore: get rid of direct DB init and use db_*
This commit is contained in:
@@ -75,7 +75,7 @@ impl Health {
|
||||
async fn health(data: AppData) -> impl Responder {
|
||||
let mut resp_builder = HealthBuilder::default();
|
||||
|
||||
resp_builder.db(data.dblib.ping().await);
|
||||
resp_builder.db(data.db.ping().await);
|
||||
|
||||
if let SystemGroup::Redis(_) = data.captcha {
|
||||
if let Ok(r) = Redis::new(RedisConfig::Single(
|
||||
|
||||
Reference in New Issue
Block a user