From 3aec6accde12e2d5b5477481b99619f4fbcc3f5c Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Fri, 5 Aug 2022 14:45:31 -0400 Subject: [PATCH] Fixes retry_block example in README. refs https://github.com/lostisland/faraday-retry/issues/11 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f861c2d..c13ec43 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ For example, you might want to keep track of the response statuses: ```ruby response_statuses = [] retry_options = { - retry_block: -> (env:, options:, retries_remaining:, exception:, will_retry_in:) { response_statuses << env.status } + retry_block: -> (env:, options:, retry_count:, exception:, will_retry_in:) { response_statuses << env.status } } ```