Skip to content

Commit

Permalink
fix: dialyzer on otp 27
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Nov 9, 2024
1 parent 72850b3 commit 8089dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/esockd_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ handle_event(
inet_db:register_socket(Sock, SockMod),

%% Inc accepted stats.
esockd_server:inc_stats({Proto, ListenOn}, accepted, 1),
_ = esockd_server:inc_stats({Proto, ListenOn}, accepted, 1),

case eval_tune_socket_fun(TuneFun, Sock) of
{ok, Sock} ->
Expand Down Expand Up @@ -266,7 +266,7 @@ handle_accept_error(enotconn, _, _) ->
handle_accept_error(einval, _, _) ->
ok;
handle_accept_error(overloaded, _, #state{proto = Proto, listen_on = ListenOn}) ->
esockd_server:inc_stats({Proto, ListenOn}, closed_overloaded, 1),
_ = esockd_server:inc_stats({Proto, ListenOn}, closed_overloaded, 1),
ok;
handle_accept_error(Reason, Msg, #state{sockname = Sockname}) ->
logger:log(error, #{msg => Msg,
Expand All @@ -287,7 +287,7 @@ handle_socket_error(Reason, State, _StateName) when Reason =:= econnaborted; Rea
%% enfile: The system limit on the total number of open files has been reached.
handle_socket_error(Reason, State, suspending) when Reason =:= emfile; Reason =:= enfile ->
log_system_limit(State, Reason),
{keep_state, State, {next_event, internal, accept_and_close}};
_ = {keep_state, State, {next_event, internal, accept_and_close}};
handle_socket_error(Reason, State, _StateName) when Reason =:= emfile; Reason =:= enfile ->
log_system_limit(State, Reason),
start_suspending(State, 1000);
Expand Down
2 changes: 1 addition & 1 deletion src/esockd_dtls_acceptor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ accepting(internal, accept,
case ssl:transport_accept(LSock) of
{ok, Sock} ->
%% Inc accepted stats.
esockd_server:inc_stats({Proto, ListenOn}, accepted, 1),
_ = esockd_server:inc_stats({Proto, ListenOn}, accepted, 1),
_ = case eval_tune_socket_fun(TuneFun, Sock) of
{ok, Sock} ->
case esockd_connection_sup:start_connection(ConnSup, Sock, UpgradeFuns) of
Expand Down

0 comments on commit 8089dca

Please sign in to comment.