mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 13:05:58 +08:00
del msg
This commit is contained in:
@@ -314,7 +314,7 @@ func (d *DataBases) SetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid string,
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *DataBases) DelMsgFromCache(seqList []uint32, uid, operationID string) {
|
||||
func (d *DataBases) DelMsgFromCache(uid string, seqList []uint32, operationID string) {
|
||||
for _, seq := range seqList {
|
||||
key := messageCache + uid + "_" + strconv.Itoa(int(seq))
|
||||
result, err := redis.String(d.Exec("GET", key))
|
||||
@@ -325,6 +325,7 @@ func (d *DataBases) DelMsgFromCache(seqList []uint32, uid, operationID string) {
|
||||
log2.Debug(operationID, utils.GetSelfFuncName(), "del result", result)
|
||||
var msg pbCommon.MsgData
|
||||
err = utils.String2Pb(result, &msg)
|
||||
log2.NewDebug(operationID, utils.GetSelfFuncName(), "msg", msg)
|
||||
if err != nil {
|
||||
log2.NewWarn(operationID, utils.GetSelfFuncName(), "string2Pb failed", msg, err.Error())
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user