summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUlf Wiger <ulf@feuerlabs.com>2015-08-20 16:29:41 +0200
committerUlf Wiger <ulf@feuerlabs.com>2015-11-20 13:41:50 -0800
commit457942002c23d1fed831ce7491a3d6cc4576ce9c (patch)
tree6cf3d36d28587279e106f7a2b8f69a404f849a70 /src
parent45ddf112263c1cf583f04ec658f6b141ec3d0b00 (diff)
downloadrvi_core-457942002c23d1fed831ce7491a3d6cc4576ce9c.tar.gz
use gproc to announce/await components
Diffstat (limited to 'src')
-rw-r--r--src/rvi_app.erl6
-rw-r--r--src/rvi_core.app.src3
-rw-r--r--src/rvi_sup.erl2
3 files changed, 5 insertions, 6 deletions
diff --git a/src/rvi_app.erl b/src/rvi_app.erl
index 129f28c..5941711 100644
--- a/src/rvi_app.erl
+++ b/src/rvi_app.erl
@@ -10,6 +10,8 @@
-module(rvi_app).
-behaviour(application).
+-include_lib("lager/include/log.hrl").
+
%% Application callbacks
-export([start/2,
@@ -24,8 +26,8 @@ start(_StartType, _StartArgs) ->
rvi_sup:start_link().
start_phase(announce, _, _) ->
- gproc:reg({n,l,rvi_core}),
- ok;
+ rvi_server:await();
+
start_phase(ping, _, _) ->
%% exoport:ping(),
ok.
diff --git a/src/rvi_core.app.src b/src/rvi_core.app.src
index e84958a..977e79e 100644
--- a/src/rvi_core.app.src
+++ b/src/rvi_core.app.src
@@ -23,9 +23,6 @@
lager,
service_edge,
authorize,
- dlink_tcp,
- bt,
- dlink_bt,
proto_json,
proto_bert
]},
diff --git a/src/rvi_sup.erl b/src/rvi_sup.erl
index e20cb48..6a65ca8 100644
--- a/src/rvi_sup.erl
+++ b/src/rvi_sup.erl
@@ -34,6 +34,6 @@ start_link() ->
init([]) ->
{ok, { {one_for_one, 5, 10},
[
- %% ?CHILD(rvi_server, worker)
+ ?CHILD(rvi_server, worker)
]} }.