1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

rename method

This commit is contained in:
Mike Perham 2015-05-20 10:31:16 -07:00
parent a6270c6350
commit 2fc1d81cc9

View file

@ -140,7 +140,7 @@ module Sidekiq
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 @@ module Sidekiq
end
end
def sleep_retry_count(retry_count)
def pause_for_recovery(retry_count)
sleep(retry_count)
end
end