summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.go b/main.go
index 418e2ef..d2337e1 100644
--- a/main.go
+++ b/main.go
@@ -57,9 +57,12 @@ func pool(startURL url.URL, maxConcurrency, maxURLs int) {
}
batches := fanIn(outlets...)
- go deduplicate(batches, urls)
- urls <- startURL
+ go func() {
+ urls <- startURL
+ }()
+
+ deduplicate(batches, urls)
fmt.Println("waiting")
wg.Wait()