mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
Fix thinko, actually produce to the correct stream/topic
This commit is contained in:
parent
2188f4f32e
commit
3e113fd14f
|
|
@ -28,6 +28,7 @@ type AppserviceEventProducer struct {
|
|||
func (a *AppserviceEventProducer) ProduceRoomEvents(
|
||||
msg *nats.Msg,
|
||||
) error {
|
||||
msg.Subject = a.Topic
|
||||
if _, err := a.JetStream.PublishMsg(msg); err != nil {
|
||||
logrus.WithError(err).Errorf("Failed to produce to topic '%s': %s", a.Topic, err)
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue