You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Remove warning about missing hiredis. You probably do want it though.
This commit is contained in:
10
index.js
10
index.js
@@ -8,19 +8,21 @@ var net = require("net"),
|
||||
default_port = 6379,
|
||||
default_host = "127.0.0.1";
|
||||
|
||||
// can set this to true to enable for all connections
|
||||
exports.debug_mode = false;
|
||||
|
||||
// hiredis might not be installed
|
||||
try {
|
||||
require("./lib/parser/hiredis");
|
||||
parsers.push(require("./lib/parser/hiredis"));
|
||||
} catch (err) {
|
||||
console.log("hiredis parser not installed.");
|
||||
if (exports.debug_mode) {
|
||||
console.log("hiredis parser not installed.");
|
||||
}
|
||||
}
|
||||
|
||||
parsers.push(require("./lib/parser/javascript"));
|
||||
|
||||
// can set this to true to enable for all connections
|
||||
exports.debug_mode = false;
|
||||
|
||||
function to_array(args) {
|
||||
var len = args.length,
|
||||
arr = new Array(len), i;
|
||||
|
Reference in New Issue
Block a user