emit works

This commit is contained in:
barisusakli
2014-11-20 19:02:29 -05:00
parent 82d863b9c8
commit 73fb653ddf
3 changed files with 117 additions and 113 deletions

View File

@@ -90,6 +90,11 @@
cxn = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host'));
}
cxn.on('error', function (err) {
winston.error(err.stack);
process.exit(1);
});
if (nconf.get('redis:password')) {
cxn.auth(nconf.get('redis:password'));
}
@@ -104,11 +109,6 @@
});
}
cxn.on('error', function (err) {
winston.error(err.stack);
process.exit(1);
});
return cxn;
};