diff options
Diffstat (limited to 'src/ranch_listener_sup.erl')
-rw-r--r-- | src/ranch_listener_sup.erl | 2 |
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 = [ |