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 {
* Global VAriables
*/
var childs = 0 // No of subchilds / workers
var count = 0
var waitGroup sync.WaitGroup
var mailData chan string
var outboxReadTime chan string
......@@ -141,7 +142,14 @@ func main() {
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 {
childs++
//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