mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-04 19:32:17 +08:00
fix: merge opensource code into local.
This commit is contained in:
parent
be3c7ae45e
commit
d553108215
@ -45,14 +45,13 @@ import (
|
|||||||
|
|
||||||
type MsgTransfer struct {
|
type MsgTransfer struct {
|
||||||
// This consumer aggregated messages, subscribed to the topic:toRedis,
|
// This consumer aggregated messages, subscribed to the topic:toRedis,
|
||||||
// the modification notification is sent to msg_to_modify topic, the message is stored in redis, Incr Redis,
|
// the message is stored in redis, Incr Redis, and then the message is sent to toPush topic for push,
|
||||||
// and then the message is sent to ms2pschat topic for push, and the message is sent to toMongo topic for persistence
|
// and the message is sent to toMongo topic for persistence
|
||||||
historyCH *OnlineHistoryRedisConsumerHandler
|
historyCH *OnlineHistoryRedisConsumerHandler
|
||||||
|
//This consumer handle message to mongo
|
||||||
historyMongoCH *OnlineHistoryMongoConsumerHandler
|
historyMongoCH *OnlineHistoryMongoConsumerHandler
|
||||||
// mongoDB batch insert, delete messages in redis after success,
|
ctx context.Context
|
||||||
// and handle the deletion notification message deleted subscriptions topic: to
|
cancel context.CancelFunc
|
||||||
ctx context.Context
|
|
||||||
cancel context.CancelFunc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user