chore(emqx_exproto): tell dialyzer exit functions do not return
This commit is contained in:
parent
a6b5e0707d
commit
3e9abbe95a
|
@ -273,6 +273,7 @@ run_loop(Parent, State = #state{socket = Socket,
|
||||||
exit_on_sock_error(Reason)
|
exit_on_sock_error(Reason)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
-spec exit_on_sock_error(atom()) -> no_return().
|
||||||
exit_on_sock_error(Reason) when Reason =:= einval;
|
exit_on_sock_error(Reason) when Reason =:= einval;
|
||||||
Reason =:= enotconn;
|
Reason =:= enotconn;
|
||||||
Reason =:= closed ->
|
Reason =:= closed ->
|
||||||
|
@ -449,6 +450,7 @@ handle_msg(Msg, State) ->
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% Terminate
|
%% Terminate
|
||||||
|
|
||||||
|
-spec terminate(atom(), state()) -> no_return().
|
||||||
terminate(Reason, State = #state{channel = Channel}) ->
|
terminate(Reason, State = #state{channel = Channel}) ->
|
||||||
?LOG(debug, "Terminated due to ~p", [Reason]),
|
?LOG(debug, "Terminated due to ~p", [Reason]),
|
||||||
_ = emqx_exproto_channel:terminate(Reason, Channel),
|
_ = emqx_exproto_channel:terminate(Reason, Channel),
|
||||||
|
|
Loading…
Reference in New Issue