aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_acceptors_sup.erl
diff options
context:
space:
mode:
authorferigis <[email protected]>2016-05-23 10:48:48 -0700
committerLoïc Hoguin <[email protected]>2016-09-19 13:42:26 +0200
commitbd9bfdf42dd529072e56e94f8e0ca4315db7330a (patch)
tree3d47b101ddfd178616654027f6c71e2c70285b73 /src/ranch_acceptors_sup.erl
parent96e74c91def06ab3e1b35a5a3b2cd832b11db3e8 (diff)
downloadranch-bd9bfdf42dd529072e56e94f8e0ca4315db7330a.tar.gz
ranch-bd9bfdf42dd529072e56e94f8e0ca4315db7330a.tar.bz2
ranch-bd9bfdf42dd529072e56e94f8e0ca4315db7330a.zip
Renaming NbAcceptors to NumAcceptors
Diffstat (limited to 'src/ranch_acceptors_sup.erl')
-rw-r--r--src/ranch_acceptors_sup.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ranch_acceptors_sup.erl b/src/ranch_acceptors_sup.erl
index 497ccfe..67854d5 100644
--- a/src/ranch_acceptors_sup.erl
+++ b/src/ranch_acceptors_sup.erl
@@ -20,10 +20,10 @@
-spec start_link(ranch:ref(), non_neg_integer(), module(), any())
-> {ok, pid()}.
-start_link(Ref, NbAcceptors, Transport, TransOpts) ->
- supervisor:start_link(?MODULE, [Ref, NbAcceptors, Transport, TransOpts]).
+start_link(Ref, NumAcceptors, Transport, TransOpts) ->
+ supervisor:start_link(?MODULE, [Ref, NumAcceptors, Transport, TransOpts]).
-init([Ref, NbAcceptors, Transport, TransOpts]) ->
+init([Ref, NumAcceptors, Transport, TransOpts]) ->
ConnsSup = ranch_server:get_connections_sup(Ref),
LSocket = case proplists:get_value(socket, TransOpts) of
undefined ->
@@ -45,7 +45,7 @@ init([Ref, NbAcceptors, Transport, TransOpts]) ->
{{acceptor, self(), N}, {ranch_acceptor, start_link, [
LSocket, Transport, ConnsSup
]}, permanent, brutal_kill, worker, []}
- || N <- lists:seq(1, NbAcceptors)],
+ || N <- lists:seq(1, NumAcceptors)],
{ok, {{one_for_one, 1, 5}, Procs}}.
-spec listen_error(any(), module(), any(), atom()) -> no_return().