lib/unbreakable/decorators/timeout.rb in unbreakable-0.0.4 vs lib/unbreakable/decorators/timeout.rb in unbreakable-0.0.5
- old
+ new
@@ -28,11 +28,11 @@
::Timeout::timeout(timeout_length) do
super
end
rescue ::Timeout::Error
if retry_attempt < retry_limit
- log.warn "Timeout on #{relative_path}, retrying in #{retry_delay} (#{retry_attempt}/#{retry_limit})"
- sleep retry_delay
+ log.warn "Timeout on #{relative_path}, retrying in #{retry_delay(retry_attempt)} (#{retry_attempt}/#{retry_limit})"
+ sleep retry_delay(retry_attempt)
retry
else
log.error "Timeout on #{relative_path}, skipping"
end
end