|
|
@ -101,13 +101,18 @@ func NewOnlineHistoryRedisConsumerHandler(
|
|
|
|
och.conversationRpcClient = conversationRpcClient
|
|
|
|
och.conversationRpcClient = conversationRpcClient
|
|
|
|
och.groupRpcClient = groupRpcClient
|
|
|
|
och.groupRpcClient = groupRpcClient
|
|
|
|
var err error
|
|
|
|
var err error
|
|
|
|
tlsConfig := &kafka.TLSConfig{
|
|
|
|
|
|
|
|
CACrt: config.Kafka.TLS.CACrt,
|
|
|
|
var tlsConfig *kafka.TLSConfig
|
|
|
|
ClientCrt: config.Kafka.TLS.ClientCrt,
|
|
|
|
if config.Kafka.TLS != nil {
|
|
|
|
ClientKey: config.Kafka.TLS.ClientKey,
|
|
|
|
tlsConfig = &kafka.TLSConfig{
|
|
|
|
ClientKeyPwd: config.Kafka.TLS.ClientKeyPwd,
|
|
|
|
CACrt: config.Kafka.TLS.CACrt,
|
|
|
|
InsecureSkipVerify: false,
|
|
|
|
ClientCrt: config.Kafka.TLS.ClientCrt,
|
|
|
|
|
|
|
|
ClientKey: config.Kafka.TLS.ClientKey,
|
|
|
|
|
|
|
|
ClientKeyPwd: config.Kafka.TLS.ClientKeyPwd,
|
|
|
|
|
|
|
|
InsecureSkipVerify: false,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
och.historyConsumerGroup, err = kafka.NewMConsumerGroup(&kafka.MConsumerGroupConfig{
|
|
|
|
och.historyConsumerGroup, err = kafka.NewMConsumerGroup(&kafka.MConsumerGroupConfig{
|
|
|
|
KafkaVersion: sarama.V2_0_0_0,
|
|
|
|
KafkaVersion: sarama.V2_0_0_0,
|
|
|
|
OffsetsInitial: sarama.OffsetNewest,
|
|
|
|
OffsetsInitial: sarama.OffsetNewest,
|
|
|
|