channel bug fix

This commit is contained in:
akostin 2018-04-04 13:00:46 +03:00
parent 3d3cf765fc
commit 35928128f6

3
b2q.go
View File

@ -317,6 +317,9 @@ func main() {
for message := range comChannel {
fmt.Printf("%v/%v %v \n", numjob, totaljobs, message)
numjob++
if numjob == totaljobs {
break
}
}
fmt.Println("\nPress Enter to exit")
fmt.Scanln()