Use empty select to block, not custom channel
This commit is contained in:
@@ -217,6 +217,5 @@ func main() {
|
||||
}()
|
||||
|
||||
log.Println("Waiting for messages")
|
||||
forever := make(chan bool)
|
||||
<-forever
|
||||
select {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user