Fix thinko, actually produce to the correct stream/topic

This commit is contained in:
Till Faelligen 2023-12-01 08:31:51 +01:00
parent 2188f4f32e
commit 3e113fd14f
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -28,6 +28,7 @@ type AppserviceEventProducer struct {
func (a *AppserviceEventProducer) ProduceRoomEvents( func (a *AppserviceEventProducer) ProduceRoomEvents(
msg *nats.Msg, msg *nats.Msg,
) error { ) error {
msg.Subject = a.Topic
if _, err := a.JetStream.PublishMsg(msg); err != nil { if _, err := a.JetStream.PublishMsg(msg); err != nil {
logrus.WithError(err).Errorf("Failed to produce to topic '%s': %s", a.Topic, err) logrus.WithError(err).Errorf("Failed to produce to topic '%s': %s", a.Topic, err)
return err return err