Explorar o código

{read_concurrency, true}

Feng %!s(int64=10) %!d(string=hai) anos
pai
achega
fe69fd95c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/emqttd_acl_internal.erl

+ 1 - 1
src/emqttd_acl_internal.erl

@@ -63,7 +63,7 @@ all_rules() ->
 %%------------------------------------------------------------------------------
 -spec init(AclOpts :: list()) -> {ok, State :: any()}.
 init(AclOpts) ->
-    ets:new(?ACL_RULE_TAB, [set, public, named_table]),
+    ets:new(?ACL_RULE_TAB, [set, public, named_table, {read_concurrency, true}]),
     AclFile = proplists:get_value(file, AclOpts),
     Default = proplists:get_value(nomatch, AclOpts, allow),
     State = #state{acl_file = AclFile, nomatch = Default},