Hotfix #3187
This commit is contained in:
parent
050409b653
commit
66a7845bdc
|
@ -85,7 +85,7 @@ do_check(Who) when is_tuple(Who) ->
|
||||||
case mnesia:dirty_read(?BANNED_TAB, Who) of
|
case mnesia:dirty_read(?BANNED_TAB, Who) of
|
||||||
[] -> false;
|
[] -> false;
|
||||||
[#banned{until = Until}] ->
|
[#banned{until = Until}] ->
|
||||||
Until > erlang:system_time(millisecond)
|
Until > erlang:system_time(second)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec(create(emqx_types:banned()) -> ok).
|
-spec(create(emqx_types:banned()) -> ok).
|
||||||
|
|
Loading…
Reference in New Issue