fix: drop queue after spawning tasks to ensure proper resource management

This commit is contained in:
monosans
2025-08-15 13:53:58 +03:00
parent e36038b6e3
commit 40c73a8f67
+2
View File
@@ -71,6 +71,8 @@ pub async fn check_all<R: reqwest::dns::Resolve + 'static>(
});
}
drop(queue);
while let Some(res) = join_set.join_next().await {
match res {
Ok(()) => {}