1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Remove unused variable reference

This commit is contained in:
Jan Matousek
2012-10-18 19:37:37 +02:00
parent 252a77e92a
commit 71070d84fb

View File

@@ -432,7 +432,7 @@ RedisClient.prototype.connection_gone = function (why) {
this.retry_delay = Math.floor(this.retry_delay * this.retry_backoff); this.retry_delay = Math.floor(this.retry_delay * this.retry_backoff);
if (exports.debug_mode) { if (exports.debug_mode) {
console.log("Retry connection in " + this.current_retry_delay + " ms"); console.log("Retry connection in " + this.retry_delay + " ms");
} }
if (this.max_attempts && this.attempts >= this.max_attempts) { if (this.max_attempts && this.attempts >= this.max_attempts) {
@@ -453,7 +453,7 @@ RedisClient.prototype.connection_gone = function (why) {
console.log("Retrying connection..."); console.log("Retrying connection...");
} }
self.retry_totaltime += self.current_retry_delay; self.retry_totaltime += self.retry_delay;
if (self.connect_timeout && self.retry_totaltime >= self.connect_timeout) { if (self.connect_timeout && self.retry_totaltime >= self.connect_timeout) {
self.retry_timer = null; self.retry_timer = null;