diff options
| author | demo <demo@antix1> | 2026-05-30 23:18:50 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-30 23:18:50 -0400 |
| commit | 592815ba5732eb8110adef2bde55256799c37962 (patch) | |
| tree | 58c9162652156914447768b4db000dff7595570f | |
| parent | 462ca98bd6751ab91a8967a99f98f9553c48e7fd (diff) | |
feat: add maxDepth argument to workers version
It's currently unused though.
| -rw-r--r-- | workers.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
