Assign failed_auth ETS table to another owner

This commit is contained in:
Evgeniy Khramtsov 2017-11-13 14:34:59 +03:00
parent 1413f5dd23
commit 9daf2dd925
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ c2s_stream_started(#{ip := {Addr, _}} = State, _) ->
%% gen_mod callbacks
%%====================================================================
start(Host, Opts) ->
catch ets:new(failed_auth, [named_table, public]),
catch ets:new(failed_auth, [named_table, public,
{heir, erlang:group_leader(), none}]),
gen_mod:start_child(?MODULE, Host, Opts).
stop(Host) ->