Created
May 4, 2015 17:04
-
-
Save tstachl/e83484c8341960c47a21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ZendeskAPI::Middleware::Request::RetryExtension | |
| def call(env) | |
| super | |
| rescue Errno::ETIMEDOUT, Timout::Error, Net::HTTPBadGateway => err | |
| retry | |
| end | |
| end | |
| class ZendeskAPI::Middleware::Request::Retry | |
| prepend ZendeskAPI::Middleware::Request::RetryExtension | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment