Skip to content

Commit

Permalink
Persist messages when sending to AMQP queue
Browse files Browse the repository at this point in the history
  • Loading branch information
geneh committed Nov 22, 2017
1 parent cf61cee commit 1fc8f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/queuing/amqpQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class AmqpQueue {
const body = JSON.stringify(request);
const deferred = Q.defer();
this.channel.then(channel => {
channel.sendToQueue(this.queueName, new Buffer(body), {}, (err, ok) => {
channel.sendToQueue(this.queueName, new Buffer(body), { persistent: true }, (err, ok) => {
if (err) {
return deferred.reject(err);
}
Expand Down

0 comments on commit 1fc8f0f

Please sign in to comment.