I received an error from the erlang compiler: “Warning: this clause cannot match because a previous clause at line 387 always matches” and was staring at the code trying to figure out why the top clause was a ‘catch all’.
case Result of
{Version, NewId, ConnectionStates, NextProtocol} ->
....
#alert{} = Alert ->
....
so #alert has 3 fields so is always matched by the 4 field tuple.
Advertisement