Use empty select to block, not custom channel

This commit is contained in:
Cedric Ziel
2020-06-22 11:09:33 +02:00
parent 1f6f0bd745
commit fcb1643bef

View File

@@ -217,6 +217,5 @@ func main() {
}()
log.Println("Waiting for messages")
forever := make(chan bool)
<-forever
select {}
}