aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ranch_sup.erl')
-rw-r--r--src/ranch_sup.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ranch_sup.erl b/src/ranch_sup.erl
index 3cb0cd6..1d100db 100644
--- a/src/ranch_sup.erl
+++ b/src/ranch_sup.erl
@@ -34,7 +34,6 @@ init([]) ->
ranch_server = ets:new(ranch_server, [
ordered_set, public, named_table]),
Procs = [
- {ranch_server, {ranch_server, start_link, []},
- permanent, 5000, worker, [ranch_server]}
+ #{id => ranch_server, start => {ranch_server, start_link, []}}
],
- {ok, {{one_for_one, Intensity, Period}, Procs}}.
+ {ok, {#{intensity => Intensity, period => Period}, Procs}}.