From 8089dcab93910fb64ba3bbcca82c594ffb3d5642 Mon Sep 17 00:00:00 2001 From: zmstone Date: Sat, 9 Nov 2024 17:19:14 +0100 Subject: [PATCH] fix: dialyzer on otp 27 --- src/esockd_acceptor.erl | 6 +++--- src/esockd_dtls_acceptor.erl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/esockd_acceptor.erl b/src/esockd_acceptor.erl index b309e4d..ffb143e 100644 --- a/src/esockd_acceptor.erl +++ b/src/esockd_acceptor.erl @@ -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} -> @@ -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, @@ -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); diff --git a/src/esockd_dtls_acceptor.erl b/src/esockd_dtls_acceptor.erl index b6c29de..2b5c60f 100644 --- a/src/esockd_dtls_acceptor.erl +++ b/src/esockd_dtls_acceptor.erl @@ -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