Skip to content

Commit 18b8a6f

Browse files
Update two more variables
1 parent 01bb66e commit 18b8a6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript-nodejs/src/worker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ amqp.connect('amqp://localhost', function(error, connection) {
66
connection.createChannel(function(error, channel) {
77
var queue = 'task_queue';
88

9-
channel.assertQueue(q, {
9+
channel.assertQueue(queue, {
1010
durable: true
1111
});
1212
channel.prefetch(1);
13-
console.log(" [*] Waiting for messages in %s. To exit press CTRL+C", q);
13+
console.log(" [*] Waiting for messages in %s. To exit press CTRL+C", queue);
1414
channel.consume(queue, function(msg) {
1515
var secs = msg.content.toString().split('.').length - 1;
1616

0 commit comments

Comments
 (0)