From 1f1099e667b329017b0e9c17659d98eb7f5ece56 Mon Sep 17 00:00:00 2001 From: erylee Date: Thu, 31 Oct 2013 17:36:40 +0800 Subject: [PATCH] add appmon --- rel/reltool.config | 6 ++++++ src/emqtt_router.erl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rel/reltool.config b/rel/reltool.config index 13cf30d65..850e82def 100644 --- a/rel/reltool.config +++ b/rel/reltool.config @@ -13,6 +13,9 @@ syntax_tools, elog, compiler, + gs, + runtime_tools, + appmon, {folsom, load}, emqtt ]}, @@ -37,6 +40,9 @@ {app, goldrush, [{incl_cond, include}]}, {app, lager, [{incl_cond, include}]}, {app, elog, [{incl_cond, include}]}, + {app, gs, [{incl_cond, include}]}, + {app, runtime_tools, [{incl_cond, include}]}, + {app, appmon, [{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 d557ee05d..c05d8249d 100644 --- a/src/emqtt_router.erl +++ b/src/emqtt_router.erl @@ -79,7 +79,6 @@ match(Topic) when is_list(Topic) -> 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}). @@ -240,3 +239,4 @@ trie_delete_path([{NodeId, Word, _} | RestPath]) -> throw({notfound, NodeId}) end. +