Last active
June 15, 2017 00:00
-
-
Save jamescarr/be4eb03ed8567dd975eead4a9738463b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
err := ch.ExchangeDeclare( | |
"unrouted", // name | |
"topic", // type | |
true, // durable | |
false, // auto-deleted | |
false, // internal | |
false, // noWait | |
nil, | |
) | |
failOnError(err, "") | |
_, err = ch.QueueDeclare("unrouted.messages", true, false, false, false, nil) | |
failOnError(err, "Failed to declare queue") | |
ch.QueueBind("unrouted.messages", "#", "unrouted", false, nil) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment