Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename method

commit 2fc1d81cc9691c9232a088f1410c5a27fae5e11f 1 parent a6270c6
@mperham authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sidekiq/processor.rb
View
4 lib/sidekiq/processor.rb
@@ -140,7 +140,7 @@ def retry_and_suppress_exceptions(max_retries = 5)
retry_count += 1
if retry_count <= max_retries
Sidekiq.logger.debug {"Suppressing and retrying error: #{e.inspect}"}
- sleep_retry_count(retry_count)
+ pause_for_recovery(retry_count)
retry
else
handle_exception(e, { :message => "Exhausted #{max_retries} retries"})
@@ -148,7 +148,7 @@ def retry_and_suppress_exceptions(max_retries = 5)
end
end
- def sleep_retry_count(retry_count)
+ def pause_for_recovery(retry_count)
sleep(retry_count)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.