mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 02:25:41 +00:00
chore: cleanup and addressing clippy lints
This commit is contained in:
@@ -101,7 +101,7 @@ pub async fn get_config(
|
||||
async fn init_mcaptcha(data: &AppData, key: &str) -> ServiceResult<()> {
|
||||
// get levels
|
||||
let levels = data.db.get_captcha_levels(None, key).await?;
|
||||
let duration = data.db.get_captcha_cooldown(&key).await?;
|
||||
let duration = data.db.get_captcha_cooldown(key).await?;
|
||||
|
||||
// build defense
|
||||
let mut defense = DefenseBuilder::default();
|
||||
|
||||
Reference in New Issue
Block a user