Feng Lee 6 лет назад
Родитель
Сommit
1af1fc4f6a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/emqx_connection.erl

+ 1 - 1
src/emqx_connection.erl

@@ -602,7 +602,7 @@ handle_info(Info, State = #state{channel = Channel}) ->
 %% Ensure rate limit
 
 ensure_rate_limit(Stats, State = #state{limiter = Limiter}) ->
-    case ?ENABLED(limiter) andalso emqx_limiter:check(Stats, Limiter) of
+    case ?ENABLED(Limiter) andalso emqx_limiter:check(Stats, Limiter) of
         false -> State;
         {ok, Limiter1} ->
             State#state{limiter = Limiter1};