aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_acceptors_sup.erl
diff options
context:
space:
mode:
authorRoberto Ostinelli <[email protected]>2012-02-20 21:25:19 -0800
committerRoberto Ostinelli <[email protected]>2012-02-20 21:25:19 -0800
commitf3de0869801d3909cc5a5d5dbee81941481a0c2e (patch)
treef5285c247275d24f40cbbecdeb84c1aa2e6bfef8 /src/cowboy_acceptors_sup.erl
parente7b6e2a402922724ffd668161ed1b65533b5c034 (diff)
downloadcowboy-f3de0869801d3909cc5a5d5dbee81941481a0c2e.tar.gz
cowboy-f3de0869801d3909cc5a5d5dbee81941481a0c2e.tar.bz2
cowboy-f3de0869801d3909cc5a5d5dbee81941481a0c2e.zip
polished dialyzer warnings on supervisor init/1 specs
Diffstat (limited to 'src/cowboy_acceptors_sup.erl')
-rw-r--r--src/cowboy_acceptors_sup.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cowboy_acceptors_sup.erl b/src/cowboy_acceptors_sup.erl
index 625028c..7c962d2 100644
--- a/src/cowboy_acceptors_sup.erl
+++ b/src/cowboy_acceptors_sup.erl
@@ -30,7 +30,13 @@ start_link(NbAcceptors, Transport, TransOpts,
%% supervisor.
--spec init(list()) -> {ok, {{one_for_one, 10, 10}, list()}}.
+-spec init([any()]) -> {'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([NbAcceptors, Transport, TransOpts,
Protocol, ProtoOpts, ListenerPid, ReqsPid]) ->
{ok, LSocket} = Transport:listen(TransOpts),