Created
December 20, 2018 23:03
-
-
Save sbellware/bffdb42688a1d38785a803bc759e6a39 to your computer and use it in GitHub Desktop.
This file contains 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
handle SomeMessage do |some_message| | |
post_data = PostData.build(some_message) | |
Retry.(HTTPError, millisecond_intervals: [100, 200]) do | |
SomeHttpAPI.post(post_data) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment