Просмотр исходного кода

refactor(emqx_listeners): better variable names

Zaiming (Stone) Shi 2 лет назад
Родитель
Сommit
674f837f36
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      apps/emqx/src/emqx_listeners.erl

+ 3 - 3
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,