Skip to content

Commit

Permalink
forward and pipe with register ref fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdarruda committed Jan 24, 2025
1 parent 70100a1 commit 7a20019
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/actors/actor/entity/invocation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ defmodule Actors.Actor.Entity.Invocation do
payload: payload,
workflow:
%Workflow{
routing: {:pipe, %Pipe{actor: actor_name, action_name: cmd} = _pipe} = _workflow
routing: {:pipe, %Pipe{actor: actor_name, action_name: cmd} = pipe} = _workflow
} = response
},
opts
Expand All @@ -717,6 +717,7 @@ defmodule Actors.Actor.Entity.Invocation do
invocation = %InvocationRequest{
system: %ActorSystem{name: system_name},
actor: %Actor{id: %ActorId{name: actor_name, system: system_name}},
register_ref: pipe.register_ref,
action_name: cmd,
metadata: metadata,
payload: payload,
Expand Down Expand Up @@ -755,7 +756,7 @@ defmodule Actors.Actor.Entity.Invocation do
workflow:
%Workflow{
routing:
{:forward, %Forward{actor: actor_name, action_name: cmd} = _pipe} = _workflow
{:forward, %Forward{actor: actor_name, action_name: cmd} = forward} = _workflow
} = response
},
opts
Expand All @@ -767,6 +768,7 @@ defmodule Actors.Actor.Entity.Invocation do
invocation = %InvocationRequest{
system: %ActorSystem{name: system_name},
actor: %Actor{id: %ActorId{name: actor_name, system: system_name}},
register_ref: forward.register_ref,
action_name: cmd,
metadata: metadata,
payload: payload,
Expand Down

0 comments on commit 7a20019

Please sign in to comment.