third callbacks review
This commit is contained in:
parent
5b9f48cae5
commit
b56aabcc7e
@ -471,8 +471,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
|||||||
muxCallbacks.Lock()
|
muxCallbacks.Lock()
|
||||||
if mc1, mok1 := callbacks[m.TGUserID64]; mok1 {
|
if mc1, mok1 := callbacks[m.TGUserID64]; mok1 {
|
||||||
if mc2, mok2 := mc1[msgParsingRules[i].MsgTypeID]; mok2 {
|
if mc2, mok2 := mc1[msgParsingRules[i].MsgTypeID]; mok2 {
|
||||||
for jobID64 := range mc2 {
|
for j := range mc2 {
|
||||||
err := rescheduleJob(jobID64, objJobStatusNew, time.Now().UTC())
|
err := rescheduleJob(mc2[j], objJobStatusNew, time.Now().UTC())
|
||||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : callbacks triggering")
|
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : callbacks triggering")
|
||||||
}
|
}
|
||||||
mc1[msgParsingRules[i].MsgTypeID] = nil
|
mc1[msgParsingRules[i].MsgTypeID] = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user