aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_listener_sup.erl
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2019-06-24 13:18:31 +0200
committerLoïc Hoguin <[email protected]>2019-07-01 13:20:43 +0200
commit37e64f50df640803625771bc3655b6db6c351493 (patch)
tree63a5d6160295bfca0197193cdeeb2fddd11b9be2 /src/ranch_listener_sup.erl
parente8d6401741021f76988091e6dc633afb65ffbe7b (diff)
downloadranch-37e64f50df640803625771bc3655b6db6c351493.tar.gz
ranch-37e64f50df640803625771bc3655b6db6c351493.tar.bz2
ranch-37e64f50df640803625771bc3655b6db6c351493.zip
Add missing specs
Diffstat (limited to 'src/ranch_listener_sup.erl')
-rw-r--r--src/ranch_listener_sup.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ranch_listener_sup.erl b/src/ranch_listener_sup.erl
index 312b6fc..f4d8ebc 100644
--- a/src/ranch_listener_sup.erl
+++ b/src/ranch_listener_sup.erl
@@ -30,6 +30,8 @@ start_link(Ref, Transport, TransOpts, Protocol, ProtoOpts) ->
Ref, NumAcceptors, NumConnsSups, Transport, Protocol
}).
+-spec init({ranch:ref(), pos_integer(), pos_integer(), module(), module()})
+ -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
init({Ref, NumAcceptors, NumConnsSups, Transport, Protocol}) ->
ok = ranch_server:set_listener_sup(Ref, self()),
ChildSpecs = [