diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-08-10 15:18:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 15:18:37 +0100 |
commit | 52eeeb16279497e24ed6b1e34a7a16fc69b587d1 (patch) | |
tree | cfcf9c482afe230ae251bd1d472cb59d9cc9e906 /syncapi/consumers | |
parent | 4b09f445c992fd0a389efc34d75aaa7e5bd50e9c (diff) |
Prefix-defined Kafka topics (#1254)
* Prefix-defined Kafka topics
* Fix current state server test
Diffstat (limited to 'syncapi/consumers')
-rw-r--r-- | syncapi/consumers/clientapi.go | 2 | ||||
-rw-r--r-- | syncapi/consumers/eduserver_sendtodevice.go | 2 | ||||
-rw-r--r-- | syncapi/consumers/eduserver_typing.go | 2 | ||||
-rw-r--r-- | syncapi/consumers/roomserver.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/syncapi/consumers/clientapi.go b/syncapi/consumers/clientapi.go index ceaa735a..6a1e590a 100644 --- a/syncapi/consumers/clientapi.go +++ b/syncapi/consumers/clientapi.go @@ -44,7 +44,7 @@ func NewOutputClientDataConsumer( ) *OutputClientDataConsumer { consumer := internal.ContinualConsumer{ - Topic: string(cfg.Matrix.Kafka.Topics.OutputClientData), + Topic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputClientData)), Consumer: kafkaConsumer, PartitionStore: store, } diff --git a/syncapi/consumers/eduserver_sendtodevice.go b/syncapi/consumers/eduserver_sendtodevice.go index 20dd1756..90bfe3e5 100644 --- a/syncapi/consumers/eduserver_sendtodevice.go +++ b/syncapi/consumers/eduserver_sendtodevice.go @@ -48,7 +48,7 @@ func NewOutputSendToDeviceEventConsumer( ) *OutputSendToDeviceEventConsumer { consumer := internal.ContinualConsumer{ - Topic: string(cfg.Matrix.Kafka.Topics.OutputSendToDeviceEvent), + Topic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputSendToDeviceEvent)), Consumer: kafkaConsumer, PartitionStore: store, } diff --git a/syncapi/consumers/eduserver_typing.go b/syncapi/consumers/eduserver_typing.go index fc5703d3..523728cd 100644 --- a/syncapi/consumers/eduserver_typing.go +++ b/syncapi/consumers/eduserver_typing.go @@ -44,7 +44,7 @@ func NewOutputTypingEventConsumer( ) *OutputTypingEventConsumer { consumer := internal.ContinualConsumer{ - Topic: string(cfg.Matrix.Kafka.Topics.OutputTypingEvent), + Topic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputTypingEvent)), Consumer: kafkaConsumer, PartitionStore: store, } diff --git a/syncapi/consumers/roomserver.go b/syncapi/consumers/roomserver.go index 06c904c3..1af58837 100644 --- a/syncapi/consumers/roomserver.go +++ b/syncapi/consumers/roomserver.go @@ -49,7 +49,7 @@ func NewOutputRoomEventConsumer( ) *OutputRoomEventConsumer { consumer := internal.ContinualConsumer{ - Topic: string(cfg.Matrix.Kafka.Topics.OutputRoomEvent), + Topic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputRoomEvent)), Consumer: kafkaConsumer, PartitionStore: store, } |