test callbacks
This commit is contained in:
parent
14c4657c6c
commit
585cb289a9
2
obj.go
2
obj.go
@ -337,7 +337,7 @@ func addObjMsg(m ChatWarsMessage) (int64, error) {
|
||||
|
||||
}
|
||||
|
||||
cacheObjMsg.Store(objId, *m)
|
||||
cacheObjMsg.Store(objId, *msg)
|
||||
|
||||
return objId, nil
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ func SQLCWMsgWorker(id int, msgs <-chan ChatWarsMessage, objIds chan<- int64) {
|
||||
log.Printf("SQLCWMsgWorker[%d] (%d) : Callback : %s : %s\n", id, m.ID64, c.Name, string(c.Data))
|
||||
}
|
||||
}
|
||||
objId, err := addObjMsg(m.ID64, m.ChatID64, m.TGUserID64, m.TGSenderUserID64, m.Date, m.Text)
|
||||
objId, err := addObjMsg(m)
|
||||
logOnError(err, "SQLCWMsgWorker["+strconv.Itoa(id)+"] : Inserting message.")
|
||||
if err == nil && objId != 0 {
|
||||
// log.Printf("SQLCWMsgWorker["+strconv.Itoa(id)+"] : Message inserted (%d).\n", objId)
|
||||
|
Loading…
Reference in New Issue
Block a user