Skip to content

Commit

Permalink
wip:
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsynz committed Dec 14, 2023
1 parent d23fa19 commit 71aa076
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions lib/reactor/step/iterator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -206,19 +206,16 @@ defmodule Reactor.Step.Iterator do
end

defp recurse(context, options) do
{:ok, recurse} =
Builder.new_step(
step_name(context, options[:iterations]),
{__MODULE__, options},
[
{options[:state_argument],
{:result, context.current_step.name, [options[:state_argument]]}}
],
max_retries: 1,
async?: context.current_step.async?
)

recurse
Builder.new_step!(
step_name(context, options[:iterations]),
{__MODULE__, options},
[
{options[:state_argument],
{:result, context.current_step.name, [options[:state_argument]]}}
],
max_retries: 1,
async?: context.current_step.async?
)
end

defp call_fun(fun, arguments, context) when is_function(fun, 2), do: fun.(arguments, context)
Expand Down

0 comments on commit 71aa076

Please sign in to comment.