Биндимся только к тому, что нам интересно

This commit is contained in:
ErickSkrauch 2016-09-15 01:29:08 +03:00
parent e8bd90d8d9
commit 3e3ba296d5

View File

@ -36,13 +36,10 @@ func Listen() {
) )
failOnError(err, "Failed to declare a queue") failOnError(err, "Failed to declare a queue")
err = ch.QueueBind( err = ch.QueueBind(queueName, "accounts.username-changed", exchangeName, false, nil)
queueName, // queue name failOnError(err, "Failed to bind a queue")
"accounts.#", // routing key
exchangeName, // exchange err = ch.QueueBind(queueName, "accounts.skin-changed", exchangeName, false, nil)
false,
nil,
)
failOnError(err, "Failed to bind a queue") failOnError(err, "Failed to bind a queue")
msgs, err := ch.Consume( msgs, err := ch.Consume(