Permalink
Browse files

fix init args

  • Loading branch information...
1 parent 850ef58 commit dfe71939e88afca89b9b0353c02e42a26397a303 @RJ committed Jun 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/stetson_sup.erl
View
6 src/stetson_sup.erl
@@ -27,15 +27,15 @@
-spec start_link(string(), string()) -> {ok, pid()} | ignore | {error, _}.
%% @doc
start_link(Uri, Ns) ->
- supervisor:start_link({local, ?MODULE}, ?MODULE, {Uri, Ns}).
+ supervisor:start_link({local, ?MODULE}, ?MODULE, [Uri, Ns]).
%%
%% Callbacks
%%
-spec init({string(), string()}) -> {ok, {{one_for_all, pos_integer(), pos_integer()}, [supervisor:child_spec()]}}.
%% @hidden
-init(Config) ->
- Spec = {stats, {stetson_server, start_link, [Config]},
+init([Uri, Ns]) ->
+ Spec = {stats, {stetson_server, start_link, [Uri, Ns]},
permanent, 2000, worker, [stetson_server]},
{ok, {{one_for_all, 100, 1}, [Spec]}}.

0 comments on commit dfe7193

Please sign in to comment.