rabbitmq / rabbitmq-erlang-client

Erlang client for RabbitMQ
https://www.rabbitmq.com/
Other
184 stars 127 forks source link

no persistent=true for basic.publish? #73

Closed JoshRagem closed 7 years ago

JoshRagem commented 7 years ago

In the examples (like elixer job queue) there is a section about message durability that seems to indicate that a restart will lose messages unless the messages are published with persistent=true. I'm unable to find any feature in the erlang client that supports this.

michaelklishin commented 7 years ago

delivery_mode = 2.

michaelklishin commented 7 years ago

Please post questions to rabbitmq-users or Stack Overflow. RabbitMQ uses GitHub issues for specific actionable items engineers can work on, not questions. Thank you.

michaelklishin commented 7 years ago

There is no "persistent" property in the protocol, there's delivery_mode that is 1 (transient) or 2 (persistent). Other clients simply provide a nicer way to set it.