mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-07 02:56:42 +08:00
log
This commit is contained in:
parent
a14fd303fc
commit
a7be7a3e7a
@ -226,12 +226,15 @@ func (och *OnlineHistoryConsumerHandler) MessagesDistributionHandle() {
|
||||
if oldM, ok := och.UserAggregationMsgs[string(consumerMessages[i].Key)]; ok {
|
||||
oldM = append(oldM, &msgFromMQ)
|
||||
och.UserAggregationMsgs[string(consumerMessages[i].Key)] = oldM
|
||||
log.Debug(operationID, "consumerMessages key ", string(consumerMessages[i].Key), oldM)
|
||||
} else {
|
||||
m := make([]*pbMsg.MsgDataToMQ, 100)
|
||||
m = append(m, &msgFromMQ)
|
||||
och.UserAggregationMsgs[string(consumerMessages[i].Key)] = m
|
||||
log.Debug(operationID, "consumerMessages key ", string(consumerMessages[i].Key), m)
|
||||
}
|
||||
}
|
||||
log.Debug(operationID, "UserAggregationMsgs len ", len(och.UserAggregationMsgs))
|
||||
for userID, v := range och.UserAggregationMsgs {
|
||||
if len(v) >= 0 {
|
||||
channelID := getHashCode(userID) % ChannelNum
|
||||
|
Loading…
x
Reference in New Issue
Block a user