Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed May 20, 2015
1 parent a6270c6 commit 2fc1d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ 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"})
end
end
end

def sleep_retry_count(retry_count)
def pause_for_recovery(retry_count)
sleep(retry_count)
end
end
Expand Down

0 comments on commit 2fc1d81

Please sign in to comment.