1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Remove deprecated parser option

This commit is contained in:
Ruben Bridgewater
2016-12-17 18:08:51 +01:00
committed by Ruben Bridgewater
parent 98527e0fc5
commit 78187142cb
68 changed files with 151 additions and 185 deletions

View File

@@ -161,13 +161,7 @@ module.exports = {
cb = opts;
opts = {};
}
var parsers = ['javascript'];
var protocols = ['IPv4'];
// The js parser works the same as the hiredis parser, just activate this if you want to be on the safe side
// try {
// require('hiredis');
// parsers.push('hiredis');
// } catch (e) {/* ignore eslint */}
if (process.platform !== 'win32') {
protocols.push('IPv6', '/tmp/redis.sock');
}
@@ -185,13 +179,11 @@ module.exports = {
}
}
describe('using options: ' + strOptions, function () {
parsers.forEach(function (parser) {
protocols.forEach(function (ip, i) {
if (i !== 0 && !opts.allConnections) {
return;
}
cb(parser, ip, config.configureClient(parser, ip, options));
});
protocols.forEach(function (ip, i) {
if (i !== 0 && !opts.allConnections) {
return;
}
cb(ip, config.configureClient(ip, options));
});
});
});