Skip to content

Commit

Permalink
Rm cfg module
Browse files Browse the repository at this point in the history
  • Loading branch information
turtled committed Dec 10, 2019
1 parent 47fde5a commit 50b01e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 100 deletions.
2 changes: 1 addition & 1 deletion src/emqx_auth_http.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{vsn, "git"},
{modules, []},
{registered, [emqx_auth_http_sup]},
{applications, [kernel,stdlib,clique]},
{applications, [kernel,stdlib]},
{mod, {emqx_auth_http_app, []}},
{env, []},
{licenses, ["Apache-2.0"]},
Expand Down
4 changes: 1 addition & 3 deletions src/emqx_auth_http_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
start(_StartType, _StartArgs) ->
with_env(auth_req, fun load_auth_hook/1),
with_env(acl_req, fun load_acl_hook/1),
emqx_auth_http_cfg:register(),
supervisor:start_link({local, ?MODULE}, ?MODULE, []).

load_auth_hook(AuthReq) ->
Expand All @@ -60,8 +59,7 @@ load_acl_hook(AclReq) ->

stop(_State) ->
emqx:unhook('client.authenticate', fun emqx_auth_http:check/3),
emqx:unhook('client.check_acl', fun emqx_acl_http:check_acl/5),
emqx_auth_http_cfg:unregister().
emqx:unhook('client.check_acl', fun emqx_acl_http:check_acl/5).

%%--------------------------------------------------------------------
%% Dummy supervisor
Expand Down
96 changes: 0 additions & 96 deletions src/emqx_auth_http_cfg.erl

This file was deleted.

0 comments on commit 50b01e0

Please sign in to comment.