diff options
author | Ulf Wiger <ulf@feuerlabs.com> | 2015-08-20 16:29:41 +0200 |
---|---|---|
committer | Ulf Wiger <ulf@feuerlabs.com> | 2015-11-20 13:41:50 -0800 |
commit | 457942002c23d1fed831ce7491a3d6cc4576ce9c (patch) | |
tree | 6cf3d36d28587279e106f7a2b8f69a404f849a70 /components/proto_json | |
parent | 45ddf112263c1cf583f04ec658f6b141ec3d0b00 (diff) | |
download | rvi_core-457942002c23d1fed831ce7491a3d6cc4576ce9c.tar.gz |
use gproc to announce/await components
Diffstat (limited to 'components/proto_json')
-rw-r--r-- | components/proto_json/src/proto_json.app.src | 5 | ||||
-rw-r--r-- | components/proto_json/src/proto_json_app.erl | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/components/proto_json/src/proto_json.app.src b/components/proto_json/src/proto_json.app.src index d3b70be..a5ab9a3 100644 --- a/components/proto_json/src/proto_json.app.src +++ b/components/proto_json/src/proto_json.app.src @@ -19,5 +19,8 @@ rvi_common ]}, {mod, { proto_json_app, []}}, - {start_phases, [{json_rpc, []}]} + {start_phases, [{json_rpc, []}, {announce, []}]}, + {env, [ + {rvi_core_await, [{n, l, proto_json}]} + ]} ]}. diff --git a/components/proto_json/src/proto_json_app.erl b/components/proto_json/src/proto_json_app.erl index 8278a9f..53a4d43 100644 --- a/components/proto_json/src/proto_json_app.erl +++ b/components/proto_json/src/proto_json_app.erl @@ -29,7 +29,10 @@ start_phase(init, _, _) -> start_phase(json_rpc, _, _) -> proto_json_rpc:start_json_server(), - ok. + ok; + +start_phase(announce, _, _) -> + rvi_common:announce({n, l, proto_json}). stop(_State) -> ok. |