contributte / rabbitmq

🐰 RabbitMQ (AMQP, STOMP, MQTT) using BunnyPHP for Nette Framework (@nette).
https://contributte.org/packages/contributte/rabbitmq.html
MIT License
24 stars 25 forks source link

Fixed message publishing to exchanges #10

Closed 31vi5 closed 6 years ago

31vi5 commented 6 years ago

Messages were published to exchanges incorrectly. A message was published for each bound queue instead of just once.

Also routing key was used incorrectly. Routing key belongs to published message, exchange then decides what to do with the message based on the routing key. Before this, message was published for each bound queue with routing key of the queue's name.