concurrent consumption of messages

This commit is contained in:
Gordon 2022-05-20 19:34:45 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent d5167688b1
commit e8670896b3

View File

@ -55,7 +55,6 @@ func (d *DataBases) BatchInsertChat(userID string, msgList []*pbMsg.MsgDataToMQ,
log.Debug(operationID, "msgListToMongoNext ", seqUidNext, m.MsgData.Seq, m.MsgData.ClientMsgID, insertCounter, remain)
continue
}
if insertCounter < remain {
msgListToMongo = append(msgListToMongo, sMsg)
insertCounter++