diff options
| author | demo <demo@antix1> | 2026-05-23 11:39:50 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-23 11:39:50 -0400 |
| commit | edce95c4a8ce11f81ef112e1e2fa183c6b3206d2 (patch) | |
| tree | 5233a77601d90b914c5ec204d2e002fff741b827 | |
| parent | 03f66133779ef2d35624ace7ecf1f427bece0b9b (diff) | |
feat: avoid sending empty URL slices to the worklist
| -rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -70,7 +70,10 @@ loop: sem <- struct{}{} defer func() { <-sem }() - worklist <- crawl(ctx, u) + more := crawl(ctx, u) + if len(more) > 0 { + worklist <- more + } }() } } |
