summaryrefslogtreecommitdiff
path: root/workers.go
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-26 22:00:19 -0400
committerdemo <demo@antix1>2026-05-26 22:00:19 -0400
commitdec73ce1d6d0abf31861cae9dd7965d86dc7496f (patch)
treecf8041032bfc0eeeb28f2da1d27171e291854515 /workers.go
parentd7beae73c248e5601e0fce78dca0b65cb6abd066 (diff)
refactor: eliminate redundant select statement
Diffstat (limited to 'workers.go')
-rw-r--r--workers.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/workers.go b/workers.go
index 01c6888..f5e1329 100644
--- a/workers.go
+++ b/workers.go
@@ -38,13 +38,7 @@ func workers(startURL url.URL, maxConcurrency, maxURLs int) {
case <-ctx.Done():
break loop
default:
- go func() {
- select {
- case <-ctx.Done():
- return
- case worklist <- batch:
- }
- }()
+ go func() { worklist <- batch }()
}
}