changed function name

This commit is contained in:
farhan 2020-10-26 06:27:44 +00:00
parent 84a07edf07
commit 18f01cc960

View File

@ -162,7 +162,7 @@ func StartGetPeers(endpoint string, reportInstanceChan chan ReportInstance) {
}
}
func DeferRun(pollmessage PollMessage, runninginstances *[]RunningInstance, reportInstanceChan chan ReportInstance, reportPostChan chan ReportPost, pollMessageChan chan PollMessage) {
func DeferPollRun(pollmessage PollMessage, runninginstances *[]RunningInstance, reportInstanceChan chan ReportInstance, reportPostChan chan ReportPost, pollMessageChan chan PollMessage) {
var min_id string
for _, runninginstance := range *runninginstances {
@ -284,7 +284,7 @@ func main() {
runninginstances[i].min_id = p.min_id
}
}
go DeferRun(p, &runninginstances, reportInstanceChan, reportPostChan, pollMessageChan)
go DeferPollRun(p, &runninginstances, reportInstanceChan, reportPostChan, pollMessageChan)
case v := <-reportPostChan: // New Post
go writePost(pool, v)
case w := <-reportInstanceChan: // Start a new instance