mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
AMQP: declare exchange and queue to be non-durable and auto-deleted to avoid pollution of the broker
This commit is contained in:
parent
3a0da86d92
commit
e65763e8ab
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ func ConnectAMQP(uri string, cb callback) error {
|
|||
// declare exchange
|
||||
err = client.sendCh.ExchangeDeclare(VILLAS_EXCHANGE,
|
||||
"headers",
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
nil)
|
||||
|
@ -82,8 +82,8 @@ func ConnectAMQP(uri string, cb callback) error {
|
|||
|
||||
// add a queue for the ICs
|
||||
ICQueue, err := client.sendCh.QueueDeclare("infrastructure_components",
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue