1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

remove deprecated new Buffer() usage

This commit is contained in:
Salakar
2020-02-09 03:58:55 +00:00
parent 6803cf4e8f
commit 24824efdcc
2 changed files with 4 additions and 4 deletions

View File

@@ -829,7 +829,7 @@ RedisClient.prototype.internal_send_command = function (command_obj) {
// 30000 seemed to be a good value to switch to buffers after testing and checking the pros and cons
if (args[i].length > 30000) {
big_data = true;
args_copy[i] = new Buffer(args[i], 'utf8');
args_copy[i] = Buffer.from(args[i], 'utf8');
} else {
args_copy[i] = args[i];
}