update access sutie and access control
This commit is contained in:
parent
a4efcb5b2c
commit
748826bdee
|
@ -154,7 +154,7 @@ init([]) ->
|
||||||
handle_call({register_mod, Type, Mod, Opts, Seq}, _From, State) ->
|
handle_call({register_mod, Type, Mod, Opts, Seq}, _From, State) ->
|
||||||
Mods = lookup_mods(Type),
|
Mods = lookup_mods(Type),
|
||||||
reply(case lists:keyfind(Mod, 1, Mods) of
|
reply(case lists:keyfind(Mod, 1, Mods) of
|
||||||
true ->
|
{_, _, _} ->
|
||||||
{error, already_existed};
|
{error, already_existed};
|
||||||
false ->
|
false ->
|
||||||
case catch Mod:init(Opts) of
|
case catch Mod:init(Opts) of
|
||||||
|
|
|
@ -98,7 +98,8 @@ end_per_group(_Group, Config) ->
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
init_per_testcase(_TestCase, Config) ->
|
init_per_testcase(_TestCase, Config) ->
|
||||||
{ok, _Pid} = ?AC:start_link(),
|
%% {ok, _Pid} =
|
||||||
|
?AC:start_link(),
|
||||||
Config.
|
Config.
|
||||||
end_per_testcase(_TestCase, _Config) ->
|
end_per_testcase(_TestCase, _Config) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
Loading…
Reference in New Issue