Remove unneeded TopicFor

This commit is contained in:
Till Faelligen 2021-07-24 12:17:42 +02:00
parent a833f5764a
commit f5a4e4a339
15 changed files with 22 additions and 22 deletions

View file

@ -51,7 +51,7 @@ func NewOutputClientDataConsumer(
consumer := internal.ContinualConsumer{
Process: process,
ComponentName: "syncapi/clientapi",
Topic: string(cfg.Matrix.JetStream.TopicFor(jetstream.OutputClientData)),
Topic: jetstream.OutputClientData,
Consumer: kafkaConsumer,
PartitionStore: store,
}

View file

@ -53,7 +53,7 @@ func NewOutputReceiptEventConsumer(
consumer := internal.ContinualConsumer{
Process: process,
ComponentName: "syncapi/eduserver/receipt",
Topic: cfg.Matrix.JetStream.TopicFor(jetstream.OutputReceiptEvent),
Topic: jetstream.OutputReceiptEvent,
Consumer: kafkaConsumer,
PartitionStore: store,
}

View file

@ -56,7 +56,7 @@ func NewOutputSendToDeviceEventConsumer(
consumer := internal.ContinualConsumer{
Process: process,
ComponentName: "syncapi/eduserver/sendtodevice",
Topic: string(cfg.Matrix.JetStream.TopicFor(jetstream.OutputSendToDeviceEvent)),
Topic: jetstream.OutputSendToDeviceEvent,
Consumer: kafkaConsumer,
PartitionStore: store,
}

View file

@ -54,7 +54,7 @@ func NewOutputTypingEventConsumer(
consumer := internal.ContinualConsumer{
Process: process,
ComponentName: "syncapi/eduserver/typing",
Topic: string(cfg.Matrix.JetStream.TopicFor(jetstream.OutputTypingEvent)),
Topic: jetstream.OutputTypingEvent,
Consumer: kafkaConsumer,
PartitionStore: store,
}

View file

@ -59,7 +59,7 @@ func NewOutputRoomEventConsumer(
consumer := internal.ContinualConsumer{
Process: process,
ComponentName: "syncapi/roomserver",
Topic: string(cfg.Matrix.JetStream.TopicFor(jetstream.OutputRoomEvent)),
Topic: jetstream.OutputRoomEvent,
Consumer: kafkaConsumer,
PartitionStore: store,
}