mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +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 {
|
loop {
|
||||||
let time_queue = Local::now();
|
let time_queue = Local::now();
|
||||||
log::debug!("queue crawl begin at {time_queue}...");
|
log::debug!("queue crawl begin at {time_queue}...");
|
||||||
ban.retain(|k, &mut v| {
|
ban.retain(|i, &mut t| {
|
||||||
let is_expired = v > time_queue - Duration::from_secs(config.ban);
|
let is_expired = t > time_queue - Duration::from_secs(config.ban);
|
||||||
if is_expired {
|
if is_expired {
|
||||||
log::debug!(
|
log::debug!(
|
||||||
"remove `{}` from the ban list by timeout expire ({v})",
|
"remove `{}` from the ban list by timeout expire ({t})",
|
||||||
k.as_string()
|
i.as_string()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
is_expired
|
is_expired
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue