mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-29 12:42:46 +00:00
Prefix-defined Kafka topics (#1254)
* Prefix-defined Kafka topics * Fix current state server test
This commit is contained in:
parent
4b09f445c9
commit
52eeeb1627
24 changed files with 79 additions and 96 deletions
|
@ -20,6 +20,7 @@ import (
|
|||
"github.com/matrix-org/dendrite/roomserver/inthttp"
|
||||
"github.com/matrix-org/gomatrixserverlib"
|
||||
|
||||
"github.com/matrix-org/dendrite/internal/config"
|
||||
"github.com/matrix-org/dendrite/internal/setup"
|
||||
"github.com/matrix-org/dendrite/roomserver/internal"
|
||||
"github.com/matrix-org/dendrite/roomserver/storage"
|
||||
|
@ -50,7 +51,7 @@ func NewInternalAPI(
|
|||
DB: roomserverDB,
|
||||
Cfg: cfg,
|
||||
Producer: base.KafkaProducer,
|
||||
OutputRoomEventTopic: string(cfg.Matrix.Kafka.Topics.OutputRoomEvent),
|
||||
OutputRoomEventTopic: string(cfg.Matrix.Kafka.TopicFor(config.TopicOutputRoomEvent)),
|
||||
Cache: base.Caches,
|
||||
ServerName: cfg.Matrix.ServerName,
|
||||
FedClient: fedClient,
|
||||
|
|
|
@ -100,7 +100,7 @@ func mustSendEvents(t *testing.T, ver gomatrixserverlib.RoomVersion, events []js
|
|||
cfg.Global.Kafka.UseNaffka = true
|
||||
cfg.RoomServer.Database.ConnectionString = config.DataSource(roomserverDBFileURI)
|
||||
dp := &dummyProducer{
|
||||
topic: string(cfg.Global.Kafka.Topics.OutputRoomEvent),
|
||||
topic: cfg.Global.Kafka.TopicFor(config.TopicOutputRoomEvent),
|
||||
}
|
||||
cache, err := caching.NewInMemoryLRUCache(true)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue