aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_sup.erl')
-rw-r--r--src/cowboy_sup.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cowboy_sup.erl b/src/cowboy_sup.erl
index e12b3aa..278df54 100644
--- a/src/cowboy_sup.erl
+++ b/src/cowboy_sup.erl
@@ -30,4 +30,6 @@ start_link() ->
-spec init([]) -> term(). %% @todo These specs should be improved.
init([]) ->
- {ok, {{one_for_one, 10, 10}, []}}.
+ Procs = [{cowboy_clock, {cowboy_clock, start_link, []},
+ permanent, 5000, worker, dynamic}],
+ {ok, {{one_for_one, 10, 10}, Procs}}.