remove use of deprecated 'new Buffer' instanciation

This commit is contained in:
ansuz
2020-01-06 14:29:45 -05:00
parent 32bdfacd92
commit 4aaef2d811
4 changed files with 4 additions and 4 deletions

View File

@@ -832,7 +832,7 @@ const messageBin = (env, chanName, msgBin, cb) => {
// append a string to a channel's log as a new line
var message = function (env, chanName, msg, cb) {
messageBin(env, chanName, new Buffer(msg + '\n', 'utf8'), cb);
messageBin(env, chanName, Buffer.from(msg + '\n', 'utf8'), cb);
};
// stream messages from a channel log