Skip to content

Commit 6a9d73b

Browse files
removed the select
1 parent 9f63ad5 commit 6a9d73b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎src/chapter2/search/main.go‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ func main() {
4242

4343
// Wait for the result from each goroutine
4444
for site := 0; site < len(sites); site++ {
45-
select {
46-
case found := <-results:
47-
for _, result := range found {
48-
log.Printf("%s:\n%s\n\n", result.Field, result.Content)
49-
}
45+
found := <-results
46+
for _, result := range found {
47+
log.Printf("%s:\n%s\n\n", result.Field, result.Content)
5048
}
5149
}
5250
}

0 commit comments

Comments
 (0)