Commit e44f4fc7 authored by Stephan Handuwala's avatar Stephan Handuwala 🏋🏻

Merge branch 'master' into 'master'

Master

See merge request !23
parents 840a5704 3679c01c
...@@ -102,6 +102,7 @@ type MailBody struct { ...@@ -102,6 +102,7 @@ type MailBody struct {
* Global VAriables * Global VAriables
*/ */
var childs = 0 // No of subchilds / workers var childs = 0 // No of subchilds / workers
var count = 0
var waitGroup sync.WaitGroup var waitGroup sync.WaitGroup
var mailData chan string var mailData chan string
var outboxReadTime chan string var outboxReadTime chan string
...@@ -141,7 +142,14 @@ func main() { ...@@ -141,7 +142,14 @@ func main() {
go worker(i) go worker(i)
} }
for 1 == 1 { for count := 0; count <= 1000; count++ {
fmt.Println(count)
if count == 1000 {
fmt.Println("1000 completed")
count = -1
}
if childs < 4 { if childs < 4 {
childs++ childs++
//time.Sleep(time.Second * 1) //time.Sleep(time.Second * 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment