Skip to content

Commit

Permalink
Use empty select to block, not custom channel
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricziel committed Jun 22, 2020
1 parent 1f6f0bd commit fcb1643
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dispatch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,5 @@ func main() {
}()

log.Println("Waiting for messages")
forever := make(chan bool)
<-forever
select {}
}

0 comments on commit fcb1643

Please sign in to comment.