diff --git a/rel/reltool.config b/rel/reltool.config index 2acc33af9..13cf30d65 100644 --- a/rel/reltool.config +++ b/rel/reltool.config @@ -8,7 +8,9 @@ stdlib, sasl, mnesia, + goldrush, lager, + syntax_tools, elog, compiler, {folsom, load}, @@ -32,8 +34,10 @@ {app, sasl, [{incl_cond, include}]}, {app, mnesia, [{incl_cond, include}]}, {app, compiler, [{incl_cond, include}]}, + {app, goldrush, [{incl_cond, include}]}, {app, lager, [{incl_cond, include}]}, {app, elog, [{incl_cond, include}]}, + {app, syntax_tools, [{incl_cond, include}]}, {app, folsom, [{incl_cond, include}]}, {app, emqtt, [{mod_cond, app}, {incl_cond, include}]} ]}. diff --git a/src/emqtt_router.erl b/src/emqtt_router.erl index 79c82e51f..11644dafb 100644 --- a/src/emqtt_router.erl +++ b/src/emqtt_router.erl @@ -78,6 +78,8 @@ match(Topic) when is_list(Topic) -> Names = [Name || #trie_node{topic=Name} <- TrieNodes, Name=/= undefined], lists:flatten([mnesia:dirty_read(topic, Name) || Name <- Names]). +%TODO: this api is really ugly + down(Client) when is_pid(Client) -> gen_server2:cast(?MODULE, {down, Client}).