File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/elixir/lib/supervisor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,12 @@ defmodule Supervisor.Spec do
145
145
in the `Supervisor` module docs.
146
146
147
147
* `:max_restarts` - the maximum amount of restarts allowed in
148
- a time frame. Defaults to 5 .
148
+ a time frame. Defaults to 3 .
149
149
150
150
* `:max_seconds` - the time frame in which `:max_restarts` applies.
151
151
Defaults to 5.
152
152
153
- The `:strategy` option is required and by default maximum 5 restarts
153
+ The `:strategy` option is required and by default maximum 3 restarts
154
154
are allowed within 5 seconds. Please check the `Supervisor` module for
155
155
a complete description of the available strategies.
156
156
"""
@@ -162,7 +162,7 @@ defmodule Supervisor.Spec do
162
162
raise ArgumentError , "expected :strategy option to be given"
163
163
end
164
164
165
- maxR = Keyword . get ( options , :max_restarts , 5 )
165
+ maxR = Keyword . get ( options , :max_restarts , 3 )
166
166
maxS = Keyword . get ( options , :max_seconds , 5 )
167
167
168
168
assert_unique_ids ( Enum . map ( children , & elem ( & 1 , 0 ) ) )
You can’t perform that action at this time.
0 commit comments