Skip to content

Commit 41f0066

Browse files
committed
Remove fall-through case; block until correct message received
1 parent 335a8ee commit 41f0066

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/chorex.ex

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ defmodule Chorex do
684684

685685
{_, ^label} ->
686686
# As far as I can tell, nil is the right context, because when
687-
# I look at `args' in the previous step, it always has context
687+
# I look at `args` in the previous step, it always has context
688688
# nil when I'm expanding the real thing.
689689
return(
690690
quote do
@@ -694,11 +694,6 @@ defmodule Chorex do
694694
receive do
695695
{:chorex, ^tok, unquote(actor1), unquote(actor2), msg} ->
696696
msg
697-
698-
m ->
699-
raise CommunicationIntegrity,
700-
message:
701-
"Communication integrity violated; process #{inspect(self())} got unexpected message #{inspect(m)}"
702697
end
703698
end
704699
)

0 commit comments

Comments
 (0)