mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 09:05:33 +00:00
add debug message
This commit is contained in:
parent
8c4698f781
commit
2fafe010a4
1 changed files with 10 additions and 1 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -90,7 +90,16 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
|
||||
// clean up nonexistent ban entries from the memory pool
|
||||
ban.retain(|i| queue.contains(i));
|
||||
ban.retain(|i| {
|
||||
let is_keep = queue.contains(i);
|
||||
if !is_keep {
|
||||
log::debug!(
|
||||
"remove `{}` from the ban list, as it is no longer available in the source.",
|
||||
i.as_string()
|
||||
)
|
||||
}
|
||||
is_keep
|
||||
});
|
||||
|
||||
// handle
|
||||
log::debug!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue