pull/232/head
wangchuxiao 3 years ago
parent df51c8b9a4
commit 9dfef527a3

@ -273,9 +273,10 @@ func (d *DataBases) SetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid string)
log2.NewWarn("", utils.GetSelfFuncName(), "Pb2Map failed", *msg.MsgData, uid, err.Error())
continue
}
log2.NewDebug("", "m", m)
_, err = d.Exec("hmset", key, redis.Args{}.Add().AddFlat(m)...)
if err != nil {
log2.NewWarn("", utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid)
log2.NewWarn("", utils.GetSelfFuncName(), "redis failed", "args:", key, *msg, uid, m)
failedList = append(failedList, *msg)
}
}

Loading…
Cancel
Save