8000 Revert "Use `Buffer.from` in place of `new Buffer`" · syk-coder/rabbitmq-tutorials@67687c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67687c0

Browse files
Revert "Use Buffer.from in place of new Buffer"
This reverts commit f71200b. Many Node users are not on Node 6 yet.
1 parent 55315a1 commit 67687c0

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
@@ -8,7 +8,7 @@ amqp.connect('amqp://localhost', function(err, conn) {
88
var msg = 'Hello World!';
99

1010
ch.assertQueue(q, {durable: false});
11-
ch.sendToQueue(q, Buffer.from(msg));
11+
ch.sendToQueue(q, new Buffer(msg));
1212
console.log(" [x] Sent %s", msg);
1313
});
1414
setTimeout(function() { conn.close(); process.exit(0) }, 500);

0 commit comments

Comments
 (0)
0