Skip to content

Commit

Permalink
Fix Faraday::Error::ConnectionFailed error
Browse files Browse the repository at this point in the history
Also fixed here librato#145
  • Loading branch information
joshuap committed Feb 7, 2022
1 parent 2698721 commit e8e9761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/librato/metrics/middleware/retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def call(env)
env[:body] = request_body # after failure is set to response body
@app.call(env)
rescue Librato::Metrics::ServerError, Timeout::Error,
Faraday::Error::ConnectionFailed
Faraday::ConnectionFailed
if retries > 0
retries -= 1 and retry
end
Expand All @@ -28,4 +28,4 @@ def call(env)

end
end
end
end

0 comments on commit e8e9761

Please sign in to comment.