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