mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 09:05:33 +00:00
rename local variables
This commit is contained in:
parent
22199c55e6
commit
2165f94f8a
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue