summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-30 23:18:50 -0400
committerdemo <demo@antix1>2026-05-30 23:18:50 -0400
commit592815ba5732eb8110adef2bde55256799c37962 (patch)
tree58c9162652156914447768b4db000dff7595570f
parent462ca98bd6751ab91a8967a99f98f9553c48e7fd (diff)
feat: add maxDepth argument to workers version
It's currently unused though.
-rw-r--r--workers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/workers.go b/workers.go
index 4d646fd..c162954 100644
--- a/workers.go
+++ b/workers.go
@@ -15,7 +15,7 @@ import (
*/
// workers launches a worker queue for crawling a given Web domain.
-func workers(startURL url.URL, maxConcurrency, maxURLs int) {
+func workers(startURL url.URL, maxConcurrency, maxURLs, maxDepth int) {
worklist := make(chan []packet)
// Unseen URLs.