Skip to content

Commit

Permalink
Derive routing key from MQTT publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Sep 27, 2024
1 parent 52f7d7a commit 7edeeca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/mgmt/mgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func DeclareAndBind(cfg config.Config, queue string, id int) rmq.IQueueInfo {
var exchangeName, routingKey string
if cfg.PublisherProto == config.MQTT {
exchangeName = "amq.topic"
routingKey = utils.InjectId(cfg.PublishTo, id)
} else {
exchangeName, routingKey = parsePublishTo(cfg.PublishTo, id)
}
Expand Down

0 comments on commit 7edeeca

Please sign in to comment.