Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Fix thinko, actually produce to the correct stream/topic
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Dec 1, 2023
1 parent 2188f4f commit 3e113fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncapi/producers/appservices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e113fd

Please sign in to comment.