concurrent consumption of messages

pull/455/head
Gordon 3 years ago committed by Xinwei Xiong(cubxxw-openim)
parent d5167688b1
commit e8670896b3

@ -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) log.Debug(operationID, "msgListToMongoNext ", seqUidNext, m.MsgData.Seq, m.MsgData.ClientMsgID, insertCounter, remain)
continue continue
} }
if insertCounter < remain { if insertCounter < remain {
msgListToMongo = append(msgListToMongo, sMsg) msgListToMongo = append(msgListToMongo, sMsg)
insertCounter++ insertCounter++

Loading…
Cancel
Save