We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e6327 commit dbb1fc8Copy full SHA for dbb1fc8
lib/redis/client.rb
@@ -313,7 +313,7 @@ def ensure_connected
313
attempts = 0
314
315
begin
316
- tries += 1
+ attempts += 1
317
318
if connected?
319
unless inherit_socket? || Process.pid == @pid
@@ -326,11 +326,6 @@ def ensure_connected
326
connect
327
end
328
329
-<<<<<<< HEAD
330
-=======
331
- attempts += 1
332
-
333
->>>>>>> make number of retries in ensure_connected configurable
334
yield
335
rescue ConnectionError, InheritedError
336
disconnect
0 commit comments