From 674f837f369dc8909695d4ce9dd1c2e812dff502 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Tue, 2 May 2023 10:42:54 +0200 Subject: [PATCH] refactor(emqx_listeners): better variable names --- apps/emqx/src/emqx_listeners.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/emqx/src/emqx_listeners.erl b/apps/emqx/src/emqx_listeners.erl index e00c79b60..a60168677 100644 --- a/apps/emqx/src/emqx_listeners.erl +++ b/apps/emqx/src/emqx_listeners.erl @@ -118,14 +118,14 @@ format_raw_listeners({Type0, Conf}) -> Bind = parse_bind(LConf0), Running = is_running(Type, listener_id(Type, LName), LConf0#{bind => Bind}), LConf1 = maps:remove(<<"authentication">>, LConf0), - LConf3 = maps:put(<<"running">>, Running, LConf1), + LConf2 = maps:put(<<"running">>, Running, LConf1), CurrConn = case Running of true -> current_conns(Type, LName, Bind); false -> 0 end, - LConf4 = maps:put(<<"current_connections">>, CurrConn, LConf3), - {true, {Type0, LName, LConf4}}; + LConf = maps:put(<<"current_connections">>, CurrConn, LConf2), + {true, {Type0, LName, LConf}}; ({_LName, _MarkDel}) -> false end,