mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +05:30
Биндимся только к тому, что нам интересно
This commit is contained in:
parent
e8bd90d8d9
commit
3e3ba296d5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user