mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-08 04:06:31 +08:00
Merge remote-tracking branch 'origin/tuoyun' into tuoyun
This commit is contained in:
commit
7da227cdfa
@ -119,7 +119,7 @@ func (och *OnlineHistoryConsumerHandler) Run(channelID int) {
|
|||||||
// log.NewError(msgFromMQ.OperationID, "SessionType error", msgFromMQ.String())
|
// log.NewError(msgFromMQ.OperationID, "SessionType error", msgFromMQ.String())
|
||||||
// return
|
// return
|
||||||
//}
|
//}
|
||||||
|
log.Debug(triggerID, "msg storage length", len(storageMsgList), "push length", len(pushMsgList))
|
||||||
err := saveUserChatList(msgChannelValue.userID, storageMsgList, triggerID)
|
err := saveUserChatList(msgChannelValue.userID, storageMsgList, triggerID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
singleMsgFailedCount += uint64(len(storageMsgList))
|
singleMsgFailedCount += uint64(len(storageMsgList))
|
||||||
@ -227,7 +227,7 @@ func (och *OnlineHistoryConsumerHandler) MessagesDistributionHandle() {
|
|||||||
log.Error(triggerID, "msg_transfer Unmarshal msg err", "msg", string(consumerMessages[i].Value), "err", err.Error())
|
log.Error(triggerID, "msg_transfer Unmarshal msg err", "msg", string(consumerMessages[i].Value), "err", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Debug(triggerID, "single msg come to distribution center", msgFromMQ.String())
|
log.Debug(triggerID, "single msg come to distribution center", msgFromMQ.String(), string(consumerMessages[i].Key))
|
||||||
if oldM, ok := UserAggregationMsgs[string(consumerMessages[i].Key)]; ok {
|
if oldM, ok := UserAggregationMsgs[string(consumerMessages[i].Key)]; ok {
|
||||||
oldM = append(oldM, &msgFromMQ)
|
oldM = append(oldM, &msgFromMQ)
|
||||||
UserAggregationMsgs[string(consumerMessages[i].Key)] = oldM
|
UserAggregationMsgs[string(consumerMessages[i].Key)] = oldM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user