Permalink
Browse files

Merge pull request #78 from robinator/master

The RedisToGo fix was only accounting for heroku namespaces.
  • Loading branch information...
2 parents 0ed513e + d252c8f commit 379afc419cb2d3cf3d3d77b3ce6cef0e668bec0b @maccman maccman committed Jun 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/juggernaut/redis.js
View
2 lib/juggernaut/redis.js
@@ -8,7 +8,7 @@ module.exports.createClient = function(){
if (process.env.REDISTOGO_URL) {
var address = url.parse(process.env.REDISTOGO_URL);
client = redis.createClient(address.port, address.hostname);
- client.auth(address.auth.replace("redistogo:", ""));
+ client.auth(address.auth.split(":")[1]);
} else {
client = redis.createClient();
}

0 comments on commit 379afc4

Please sign in to comment.