Skip to content

Commit

Permalink
Allow retry_delays to be anything (#993)
Browse files Browse the repository at this point in the history
- so we accept anything `Base.retry`'s `delay` argument accepts
  • Loading branch information
nickrobinson251 committed Jan 12, 2023
1 parent 8b7eeef commit a403067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clientlayers/RetryRequest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ will be retried anyway.
"""
function retrylayer(handler)
return function(req::Request; retry::Bool=true, retries::Int=4,
retry_delays::ExponentialBackOff=ExponentialBackOff(n = retries, factor=3.0), retry_check=FALSE,
retry_delays=ExponentialBackOff(n = retries, factor=3.0), retry_check=FALSE,
retry_non_idempotent::Bool=false, kw...)
if !retry || retries == 0
# no retry
Expand Down

0 comments on commit a403067

Please sign in to comment.