1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00

Merge pull request #1171 from novemberborn/patch-1

Update retry_strategy example
This commit is contained in:
Ruben Bridgewater
2016-11-14 11:00:13 +01:00
committed by GitHub

View File

@@ -237,7 +237,7 @@ var client = redis.createClient({
return undefined;
}
// reconnect after
return Math.max(options.attempt * 100, 3000);
return Math.min(options.attempt * 100, 3000);
}
});
```