Skip to content

Commit

Permalink
Remove fall-through case; block until correct message received
Browse files Browse the repository at this point in the history
  • Loading branch information
ashton314 committed Nov 15, 2024
1 parent 335a8ee commit 41f0066
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/chorex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ defmodule Chorex do

{_, ^label} ->
# As far as I can tell, nil is the right context, because when
# I look at `args' in the previous step, it always has context
# I look at `args` in the previous step, it always has context
# nil when I'm expanding the real thing.
return(
quote do
Expand All @@ -694,11 +694,6 @@ defmodule Chorex do
receive do
{:chorex, ^tok, unquote(actor1), unquote(actor2), msg} ->
msg

m ->
raise CommunicationIntegrity,
message:
"Communication integrity violated; process #{inspect(self())} got unexpected message #{inspect(m)}"
end
end
)
Expand Down

0 comments on commit 41f0066

Please sign in to comment.