third callbacks review

This commit is contained in:
shoopea 2019-08-17 14:46:14 +08:00
parent 5b9f48cae5
commit b56aabcc7e

View File

@ -471,8 +471,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
muxCallbacks.Lock()
if mc1, mok1 := callbacks[m.TGUserID64]; mok1 {
if mc2, mok2 := mc1[msgParsingRules[i].MsgTypeID]; mok2 {
for jobID64 := range mc2 {
err := rescheduleJob(jobID64, objJobStatusNew, time.Now().UTC())
for j := range mc2 {
err := rescheduleJob(mc2[j], objJobStatusNew, time.Now().UTC())
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : callbacks triggering")
}
mc1[msgParsingRules[i].MsgTypeID] = nil