mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Merge branch 'tuoyun' of github.com:OpenIMSDK/Open-IM-Server into tuoyun
This commit is contained in:
commit
b36703fc47
@ -39,7 +39,6 @@ type OnlineHistoryConsumerHandler struct {
|
|||||||
msgHandle map[string]fcb
|
msgHandle map[string]fcb
|
||||||
historyConsumerGroup *kfk.MConsumerGroup
|
historyConsumerGroup *kfk.MConsumerGroup
|
||||||
cmdCh chan Cmd2Value
|
cmdCh chan Cmd2Value
|
||||||
msgCh chan Cmd2Value
|
|
||||||
chArrays [ChannelNum]chan Cmd2Value
|
chArrays [ChannelNum]chan Cmd2Value
|
||||||
chMongoArrays [ChannelNum]chan Cmd2Value
|
chMongoArrays [ChannelNum]chan Cmd2Value
|
||||||
msgDistributionCh chan Cmd2Value
|
msgDistributionCh chan Cmd2Value
|
||||||
@ -50,13 +49,12 @@ func (och *OnlineHistoryConsumerHandler) Init(cmdCh chan Cmd2Value) {
|
|||||||
och.msgDistributionCh = make(chan Cmd2Value) //no buffer channel
|
och.msgDistributionCh = make(chan Cmd2Value) //no buffer channel
|
||||||
go och.MessagesDistributionHandle()
|
go och.MessagesDistributionHandle()
|
||||||
och.cmdCh = cmdCh
|
och.cmdCh = cmdCh
|
||||||
och.msgCh = make(chan Cmd2Value, 1000)
|
|
||||||
for i := 0; i < ChannelNum; i++ {
|
for i := 0; i < ChannelNum; i++ {
|
||||||
och.chArrays[i] = make(chan Cmd2Value, 1000)
|
och.chArrays[i] = make(chan Cmd2Value, 100)
|
||||||
go och.Run(i)
|
go och.Run(i)
|
||||||
}
|
}
|
||||||
for i := 0; i < ChannelNum; i++ {
|
for i := 0; i < ChannelNum; i++ {
|
||||||
och.chMongoArrays[i] = make(chan Cmd2Value, 10000)
|
och.chMongoArrays[i] = make(chan Cmd2Value, 1000)
|
||||||
go och.MongoMessageRun(i)
|
go och.MongoMessageRun(i)
|
||||||
}
|
}
|
||||||
if config.Config.ReliableStorage {
|
if config.Config.ReliableStorage {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user