|
|
@ -164,7 +164,7 @@ func (och *OnlineHistoryConsumerHandler) SendMessageToMongoCH(userID string, tri
|
|
|
|
func (och *OnlineHistoryConsumerHandler) MongoMessageRun(channelID int) {
|
|
|
|
func (och *OnlineHistoryConsumerHandler) MongoMessageRun(channelID int) {
|
|
|
|
for {
|
|
|
|
for {
|
|
|
|
select {
|
|
|
|
select {
|
|
|
|
case cmd := <-och.chArrays[channelID]:
|
|
|
|
case cmd := <-och.chMongoArrays[channelID]:
|
|
|
|
switch cmd.Cmd {
|
|
|
|
switch cmd.Cmd {
|
|
|
|
case MongoMessages:
|
|
|
|
case MongoMessages:
|
|
|
|
msgChannelValue := cmd.Value.(MsgChannelValue)
|
|
|
|
msgChannelValue := cmd.Value.(MsgChannelValue)
|
|
|
|