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

callFuncAfter should fire the passed fn everytime called above the minimum

Also pass individual ports to the redis process through
This commit is contained in:
Ruben Bridgewater
2016-03-01 16:37:32 +01:00
parent 0a636f95cc
commit 6013ee7f90

View File

@@ -8,11 +8,11 @@ var StunnelProcess = require("./lib/stunnel-process");
var rp; var rp;
var stunnel_process; var stunnel_process;
function startRedis (conf, done) { function startRedis (conf, done, port) {
RedisProcess.start(function (err, _rp) { RedisProcess.start(function (err, _rp) {
rp = _rp; rp = _rp;
return done(err); return done(err);
}, path.resolve(__dirname, conf)); }, path.resolve(__dirname, conf), port);
} }
function startStunnel(done) { function startStunnel(done) {
@@ -176,7 +176,7 @@ module.exports = {
throw err; throw err;
} }
i++; i++;
if (i === max) { if (i >= max) {
func(); func();
return true; return true;
} }