bschmitt / laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages
MIT License
270 stars 86 forks source link

How to set initial durable for exchange #113

Closed matrix2305 closed 2 years ago

matrix2305 commented 2 years ago

I have a problem with set durable = true on publish or subscribe message in setup connection to RabbitMQ:

I don't know how to set durable in config: My (bad) example: 'exchange_properties' => ['durable' => ['t',true]],

Exception: PRECONDITION_FAILED - inequivalent arg 'durable' for exchange 'amq.topic' in vhost '/': received 'false' but current is 'true'

Do I create new vhost with different settings or something else?

Thanks in advance!

matrix2305 commented 2 years ago

I'm not publish config from vendor, already I'm copy (old) config from description.