summaryrefslogtreecommitdiff
path: root/lib/net/hippie/client.rb
diff options
context:
space:
mode:
authormo <mo@mokhan.ca>2018-11-10 21:36:05 -0700
committermo <mo@mokhan.ca>2018-11-10 21:36:05 -0700
commitfb531b832279884b713cc8a381e8b92f7c9fbbd0 (patch)
treec8aa9dd0959740c106b7c0faa43e168465457fc2 /lib/net/hippie/client.rb
parentaa895cfe05a82195671d7290d78b6480652363ab (diff)
revert constant name.
Diffstat (limited to 'lib/net/hippie/client.rb')
-rw-r--r--lib/net/hippie/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/hippie/client.rb b/lib/net/hippie/client.rb
index a140653..e554562 100644
--- a/lib/net/hippie/client.rb
+++ b/lib/net/hippie/client.rb
@@ -88,7 +88,7 @@ module Net
def attempt(attempt, max)
yield
- rescue *TIMEOUT_ERRORS => error
+ rescue *CONNECTION_ERRORS => error
raise error if attempt == max
delay = ((2**attempt) * 0.1) + Random.rand(0.05) # delay + jitter