From f3de0869801d3909cc5a5d5dbee81941481a0c2e Mon Sep 17 00:00:00 2001 From: Roberto Ostinelli Date: Mon, 20 Feb 2012 21:25:19 -0800 Subject: polished dialyzer warnings on supervisor init/1 specs --- src/cowboy_sup.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cowboy_sup.erl') diff --git a/src/cowboy_sup.erl b/src/cowboy_sup.erl index 34591bc..502c592 100644 --- a/src/cowboy_sup.erl +++ b/src/cowboy_sup.erl @@ -29,7 +29,13 @@ start_link() -> %% supervisor. --spec init([]) -> {ok, {{one_for_one, 10, 10}, [{_, _, _, _, _, _}, ...]}}. +-spec init([]) -> {'ok', {{'one_for_one', 10, 10}, [{ + any(), {atom() | tuple(), atom(), 'undefined' | [any()]}, + 'permanent' | 'temporary' | 'transient', + 'brutal_kill' | 'infinity' | non_neg_integer(), + 'supervisor' | 'worker', + 'dynamic' | [atom() | tuple()]}] +}}. init([]) -> Procs = [{cowboy_clock, {cowboy_clock, start_link, []}, permanent, 5000, worker, [cowboy_clock]}], -- cgit v1.2.3