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 /eduserver | |
parent | 4b09f445c992fd0a389efc34d75aaa7e5bd50e9c (diff) |
Prefix-defined Kafka topics (#1254)
* Prefix-defined Kafka topics
* Fix current state server test
Diffstat (limited to 'eduserver')
-rw-r--r-- | eduserver/eduserver.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eduserver/eduserver.go b/eduserver/eduserver.go index e0e61b1a..b6196c26 100644 --- a/eduserver/eduserver.go +++ b/eduserver/eduserver.go @@ -22,6 +22,7 @@ import ( "github.com/matrix-org/dendrite/eduserver/cache" "github.com/matrix-org/dendrite/eduserver/input" "github.com/matrix-org/dendrite/eduserver/inthttp" + "github.com/matrix-org/dendrite/internal/config" "github.com/matrix-org/dendrite/internal/setup" userapi "github.com/matrix-org/dendrite/userapi/api" ) @@ -44,8 +45,8 @@ func NewInternalAPI( Cache: eduCache, UserAPI: userAPI, Producer: base.KafkaProducer, - OutputTypingEventTopic: string(cfg.Matrix.Kafka.Topics.OutputTypingEvent), - OutputSendToDeviceEventTopic: string(cfg.Matrix.Kafka.Topics.OutputSendToDeviceEvent), + OutputTypingEventTopic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputTypingEvent)), + OutputSendToDeviceEventTopic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputSendToDeviceEvent)), ServerName: cfg.Matrix.ServerName, } } |