Skip to content

Commit a2f4d2f

Browse files
committed
Update main.go
1 parent 3b41ae6 commit a2f4d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func main() {
2525
var MAXREQS = runtime.NumCPU()
2626

2727
var lim = make(chan struct{}, MAXREQS)
28-
out := make(chan any)
29-
in := make(chan string)
28+
out := make(chan any, len(matches))
29+
in := make(chan string, len(matches))
3030
for range matches {
3131

3232
go handle(in, out, lim)

0 commit comments

Comments
 (0)