File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,15 +113,15 @@ defmodule Stack.FailureFilter do
113113
114114 ## Examples
115115
116- Stack.FailureFilter.new(fn %WriteError{} -> :retry ; _ -> :cont end, [max_tries: 2])
116+ Stack.FailureFilter.new(fn %WriteError{} -> :retry ; %{__exception__: true} -> :error ; _ -> :cont end, [max_tries: 2])
117117 |> Filter.into(fn -> Database.fetch!(key) end)
118118
119119 ## Options
120120 * `:max_tries` - maximum number of tries (including first try) (default: `3`)
121121 * `:backoff` - backoff data structure, see `:backoff`
122122 * `:backoff_threshold` - minimum timeout remaining in deadline to allow backoff (default: `1`)
123123 * `:retry_budget` - retry budget to limit retries, see `Stack.RetryBudget` (default: `nil`)
124- * `:retry_treshold ` - minimium criticality level to retry a failure (default: `:critical`)
124+ * `:retry_threshold ` - minimium criticality level to retry a failure (default: `:critical`)
125125 * `:reject_budget` - reject budget to pre-emptively reject, see `Stack.RejectBudget` (default: `nil`)
126126 * `:force_threshold` - minimum criticality level to force a budget not to drop (default: `:critical`)
127127
You can’t perform that action at this time.
0 commit comments