batch to mongo

This commit is contained in:
skiffer-git
2022-05-20 11:20:21 +08:00
parent 5f25e605d3
commit 00a2a23190
3 changed files with 11 additions and 4 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ func saveUserChat(uid string, msg *pbMsg.MsgDataToMQ) error {
// return db.DB.SaveUserChatMongo2(uid, pbSaveData.MsgData.SendTime, &pbSaveData)
}
func saveUserChatList(uid string, msgList []*pbMsg.MsgDataToMQ, operationID string) error {
log.Info(operationID, utils.GetSelfFuncName(), "args ", uid, len(msgList))
return db.DB.BatchInsertChat(uid, msgList, operationID)
func saveUserChatList(userID string, msgList []*pbMsg.MsgDataToMQ, operationID string) error {
log.Info(operationID, utils.GetSelfFuncName(), "args ", userID, len(msgList))
return db.DB.BatchInsertChat(userID, msgList, operationID)
}