node-resque
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -55,2 +55,5 @@ var connection = function(options){ | ||
self.redis = options.redis || package.createClient(options.port, options.host, options.options); | ||
if(options.password != null && options.password != "" && self.options.fake != true){ | ||
self.redis.auth(options.password); | ||
} | ||
@@ -66,9 +69,3 @@ self.redis.on('error', function(err){ | ||
self.connected = true; | ||
if(options.password != null && options.password != "" && self.options.fake != true){ | ||
self.redis.auth(options.password, function(err){ | ||
self.redis.select(options.database, function(err){ | ||
callback(err); | ||
}); | ||
}); | ||
}else if(self.options.package != 'fakeredis'){ | ||
if(self.options.package != 'fakeredis'){ | ||
self.redis.select(options.database, function(err){ | ||
@@ -75,0 +72,0 @@ self.redis.info(function(err, data){ |
@@ -5,3 +5,3 @@ { | ||
"description": "an opinionated implementation of resque in node", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"homepage": "http://github.com/taskrabbit/node-resque", | ||
@@ -8,0 +8,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99592
2269