moved reds into redis, fixed notifications prune param

v1.18.x
Baris Soner Usakli 11 years ago
parent 1564e3d530
commit 447073560f

@ -8,6 +8,7 @@
nconf = require('nconf'),
express = require('express'),
connectRedis = require('connect-redis')(express),
reds = require('reds'),
redis_socket_or_host = nconf.get('redis:host'),
utils = require('./../../public/src/utils.js');
@ -28,6 +29,10 @@
ttl: 60 * 60 * 24 * 30
});
reds.createClient = function () {
return reds.client || (reds.client = redisClient);
};
if (nconf.get('redis:password')) {
redisClient.auth(nconf.get('redis:password'));
}

@ -243,7 +243,7 @@ var async = require('async'),
async.eachSeries(results.expiredNids, function(nid, next) {
db.sortedSetsScore(results.inboxes, function(err, results) {
db.sortedSetsScore(results.inboxes, nid, function(err, results) {
if(err) {
return next(err);
}

Loading…
Cancel
Save