aboutsummaryrefslogtreecommitdiff
path: root/federationsender/consumers/eduserver.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-08-10 15:18:37 +0100
committerGitHub <noreply@github.com>2020-08-10 15:18:37 +0100
commit52eeeb16279497e24ed6b1e34a7a16fc69b587d1 (patch)
treecfcf9c482afe230ae251bd1d472cb59d9cc9e906 /federationsender/consumers/eduserver.go
parent4b09f445c992fd0a389efc34d75aaa7e5bd50e9c (diff)
Prefix-defined Kafka topics (#1254)
* Prefix-defined Kafka topics * Fix current state server test
Diffstat (limited to 'federationsender/consumers/eduserver.go')
-rw-r--r--federationsender/consumers/eduserver.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/federationsender/consumers/eduserver.go b/federationsender/consumers/eduserver.go
index 74ce65db..e1a42f07 100644
--- a/federationsender/consumers/eduserver.go
+++ b/federationsender/consumers/eduserver.go
@@ -50,20 +50,20 @@ func NewOutputEDUConsumer(
) *OutputEDUConsumer {
c := &OutputEDUConsumer{
typingConsumer: &internal.ContinualConsumer{
- Topic: string(cfg.Matrix.Kafka.Topics.OutputTypingEvent),
+ Topic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputTypingEvent)),
Consumer: kafkaConsumer,
PartitionStore: store,
},
sendToDeviceConsumer: &internal.ContinualConsumer{
- Topic: string(cfg.Matrix.Kafka.Topics.OutputSendToDeviceEvent),
+ Topic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputSendToDeviceEvent)),
Consumer: kafkaConsumer,
PartitionStore: store,
},
queues: queues,
db: store,
ServerName: cfg.Matrix.ServerName,
- TypingTopic: string(cfg.Matrix.Kafka.Topics.OutputTypingEvent),
- SendToDeviceTopic: string(cfg.Matrix.Kafka.Topics.OutputSendToDeviceEvent),
+ TypingTopic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputTypingEvent)),
+ SendToDeviceTopic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputSendToDeviceEvent)),
}
c.typingConsumer.ProcessMessage = c.onTypingEvent
c.sendToDeviceConsumer.ProcessMessage = c.onSendToDeviceEvent