8000 declare transient queue · CodingCreeks/rabbitmq-tutorials@1143a0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1143a0c

Browse files
committed
declare transient queue
1 parent fa2dfc6 commit 1143a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript-nodejs/src/send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ amqp.connect('amqp://localhost', function(err, conn) {
66
conn.createChannel(function(err, ch) {
77
var q = 'hello';
88

9-
ch.assertQueue(q);
9+
ch.assertQueue(q, {durable: false});
1010
ch.sendToQueue(q, new Buffer('Hello World!'));
1111
console.log(" [x] Sent 'Hello World!'");
1212
});

0 commit comments

Comments
 (0)
0