Skip to content

Commit 74459c4

Browse files
author
Blake Jacobs
committed
you can now resolve with a list of dns resolvers and port scanning is optional
1 parent b7b8047 commit 74459c4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/main.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,6 @@ async fn send_url(
318318
if let Err(_) = tx.send(msg) {
319319
continue;
320320
}
321-
322-
// Wait until the rate limiter allows the next job to be sent.
323-
lim.until_ready().await;
324321
break;
325322
}
326323
}
@@ -336,11 +333,10 @@ async fn send_url(
336333
if let Err(_) = tx.send(msg) {
337334
continue;
338335
}
339-
340-
// Wait until the rate limiter allows the next job to be sent.
341-
lim.until_ready().await;
342-
break;
343336
}
337+
338+
// Wait until the rate limiter allows the next job to be sent.
339+
lim.until_ready().await;
344340
}
345341

346342
// Return an empty `Result` indicating success.

0 commit comments

Comments
 (0)