Skip to content

Commit 59cecbb

Browse files
committed
n2o_syn special case
1 parent 805339f commit 59cecbb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

rebar.config

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{lib_dirs,[".."]}.
22
{deps_dir,["deps"]}.
33
{deps,[
4-
% {nitro, ".*", {git, "git://github.com/synrc/nitro.git", {tag,"0.9"}}},
5-
{jsone, ".*", {git, "git://github.com/sile/jsone.git", {tag,"v0.3.3"}}},
6-
{cowboy, ".*", {git, "git://github.com/extend/cowboy", {tag,"1.0.1"}}},
7-
{gproc, ".*", {git, "git://github.com/uwiger/gproc.git", {tag,"0.3"}}}
4+
% {nitro, ".*", {git, "git://github.com/synrc/nitro.git", {tag,"0.9"}}},
5+
% {jsone, ".*", {git, "git://github.com/sile/jsone.git", {tag,"v0.3.3"}}},
6+
% {gproc, ".*", {git, "git://github.com/uwiger/gproc.git", {tag,"0.3"}}},
7+
{cowboy, ".*", {git, "git://github.com/extend/cowboy", {tag,"1.0.1"}}}
88
]}.

samples/apps/review/src/review.erl

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ stop(_) -> ok.
1414
#user{id="roman",email="[email protected]"}]).
1515

1616
init([]) -> users:init(),
17-
case wf:config(n2o,mq) of n2o_syn -> syn:init(); _ -> skip end,
1817
users:populate(?USERS),
1918
kvs:join(),
2019
{ok, {{one_for_one, 5, 10}, [spec()]}}.

src/n2o.app.src

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{application, n2o, [
22
{description, "N2O WebSocket Application Server"},
33
{vsn, "3.3"},
4-
{applications, [kernel, stdlib, cowboy, gproc]},
4+
{applications, [kernel, stdlib, cowboy]},
55
{modules, []},
66
{registered, []},
77
{mod, { n2o, []}},

src/n2o.erl

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ start(_,_) -> X = supervisor:start_link({local,n2o},n2o,[]),
1212
X.
1313
stop(_) -> ok.
1414
init([]) -> [ ets:new(T,opt()) || T <- tables() ],
15+
case wf:config(n2o,mq) of n2o_syn -> syn:init(); _ -> ok end,
1516
{ ok, { { one_for_one, 5, 10 }, [] } }.
1617

1718
proc(init,#handler{}=Async) ->

0 commit comments

Comments
 (0)