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

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")
err = ch.QueueBind(
queueName, // queue name
"accounts.#", // routing key
exchangeName, // exchange
false,
nil,
)
err = ch.QueueBind(queueName, "accounts.username-changed", exchangeName, false, nil)
failOnError(err, "Failed to bind a queue")
err = ch.QueueBind(queueName, "accounts.skin-changed", exchangeName, false, nil)
failOnError(err, "Failed to bind a queue")
msgs, err := ch.Consume(