added missing 'go' directive

This commit is contained in:
farhan 2020-10-23 02:40:22 +00:00
parent 2a4d1c8dad
commit 305432e58a

View File

@ -243,7 +243,7 @@ func main() {
runninginstances[i].min_id = p.min_id
}
}
DeferRun(p, &runninginstances, reportInstanceChan, reportPostChan, pollMessageChan)
go DeferRun(p, &runninginstances, reportInstanceChan, reportPostChan, pollMessageChan)
case v := <-reportPostChan: // New Post
go writePost( v)
case w := <-reportInstanceChan: // Start a new instance