From 3e55cb62c9053895412b1cf2a65d54ef90eda34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 25 May 2011 23:02:40 +0200 Subject: Refresh the type specifications. Following discussions on #erlounge. Also fixes compilation in R14B03 and fixes a few underspecs dialyzer warnings. --- src/cowboy_sup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_sup.erl') diff --git a/src/cowboy_sup.erl b/src/cowboy_sup.erl index 278df54..13977e7 100644 --- a/src/cowboy_sup.erl +++ b/src/cowboy_sup.erl @@ -22,13 +22,13 @@ %% API. --spec start_link() -> {ok, Pid::pid()}. +-spec start_link() -> {ok, pid()}. start_link() -> supervisor:start_link({local, ?SUPERVISOR}, ?MODULE, []). %% supervisor. --spec init([]) -> term(). %% @todo These specs should be improved. +-spec init([]) -> {ok, {{one_for_one, 10, 10}, [{_, _, _, _, _, _}, ...]}}. init([]) -> Procs = [{cowboy_clock, {cowboy_clock, start_link, []}, permanent, 5000, worker, dynamic}], -- cgit v1.2.3