Skip to content

Commit

Permalink
increase top-level supervisor restart limit
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Jun 20, 2012
1 parent af0f976 commit b7a968c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/stetson_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@

-spec start_link(string(), string()) -> {ok, pid()} | ignore | {error, _}.
%% @doc
start_link(Uri, Ns) -> supervisor:start_link({local, ?MODULE}, ?MODULE, {Uri, Ns}).
start_link(Uri, Ns) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, {Uri, Ns}).

%%
%% Callbacks
%%

-spec init({string(), string()}) -> {ok, {{one_for_all, 3, 20}, [supervisor:child_spec()]}}.
-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]},
permanent, 2000, worker, [stetson_server]},
{ok, {{one_for_all, 3, 20}, [Spec]}}.
{ok, {{one_for_all, 100, 1}, [Spec]}}.

0 comments on commit b7a968c

Please sign in to comment.