From 2165f94f8af4283cc841c5cb6d43ae8521927870 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 13 Aug 2025 16:07:06 +0300 Subject: [PATCH] rename local variables --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 687fbf2..145f3bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,12 +70,12 @@ async fn main() -> Result<()> { loop { let time_queue = Local::now(); log::debug!("queue crawl begin at {time_queue}..."); - ban.retain(|k, &mut v| { - let is_expired = v > time_queue - Duration::from_secs(config.ban); + ban.retain(|i, &mut t| { + let is_expired = t > time_queue - Duration::from_secs(config.ban); if is_expired { log::debug!( - "remove `{}` from the ban list by timeout expire ({v})", - k.as_string() + "remove `{}` from the ban list by timeout expire ({t})", + i.as_string() ) } is_expired