mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 11:06:43 +08:00
msg cache
This commit is contained in:
parent
d8814ad09f
commit
daa716a083
@ -24,5 +24,6 @@ func saveUserChat(uid string, msg *pbMsg.MsgDataToMQ) error {
|
|||||||
|
|
||||||
func saveUserChatList(userID string, msgList []*pbMsg.MsgDataToMQ, operationID string) error {
|
func saveUserChatList(userID string, msgList []*pbMsg.MsgDataToMQ, operationID string) error {
|
||||||
log.Info(operationID, utils.GetSelfFuncName(), "args ", userID, len(msgList))
|
log.Info(operationID, utils.GetSelfFuncName(), "args ", userID, len(msgList))
|
||||||
return db.DB.BatchInsertChat(userID, msgList, operationID)
|
//return db.DB.BatchInsertChat(userID, msgList, operationID)
|
||||||
|
return db.DB.BatchInsertChatBoth(userID, msgList, operationID)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user