lib/resque/plugins/exponential_backoff.rb in resque-retry-1.7.3 vs lib/resque/plugins/exponential_backoff.rb in resque-retry-1.7.4
- old
+ new
@@ -78,13 +78,14 @@
@retry_limit ||= backoff_strategy.length
end
# Selects the delay from the backoff strategy
#
+ # @param _ [Exception] unused exception argument for signature parity
# @return [Number] seconds to delay until the next retry.
#
# @api private
- def retry_delay
+ def retry_delay(_ = nil)
delay = backoff_strategy[retry_attempt] || backoff_strategy.last
# if the values are the same don't bother generating a random number, if
# the delta is zero, some platforms will raise an error
if retry_delay_multiplicand_min == retry_delay_multiplicand_max
delay_multiplicand = retry_delay_multiplicand_max