|
|
@ -28,8 +28,11 @@ func (d *DataBases) BatchInsertChat(userID string, msgList []*pbMsg.MsgDataToMQ,
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return utils.Wrap(err, "")
|
|
|
|
return utils.Wrap(err, "")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var remain uint64
|
|
|
|
remain := uint64(GetSingleGocMsgNum()) - (currentMaxSeq % uint64(GetSingleGocMsgNum()))
|
|
|
|
if currentMaxSeq < uint64(GetSingleGocMsgNum()) {
|
|
|
|
|
|
|
|
remain = uint64(GetSingleGocMsgNum()-1) - (currentMaxSeq % uint64(GetSingleGocMsgNum()))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
remain = uint64(GetSingleGocMsgNum()) - (currentMaxSeq % uint64(GetSingleGocMsgNum()))
|
|
|
|
insertCounter := uint64(0)
|
|
|
|
insertCounter := uint64(0)
|
|
|
|
msgListToMongo := make([]MsgInfo, 0)
|
|
|
|
msgListToMongo := make([]MsgInfo, 0)
|
|
|
|
msgListToMongoNext := make([]MsgInfo, 0)
|
|
|
|
msgListToMongoNext := make([]MsgInfo, 0)
|
|
|
|