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
145145 in the `Supervisor` module docs.
146146
147147 * `:max_restarts` - the maximum amount of restarts allowed in
148- a time frame. Defaults to 5 .
148+ a time frame. Defaults to 3 .
149149
150150 * `:max_seconds` - the time frame in which `:max_restarts` applies.
151151 Defaults to 5.
152152
153- The `:strategy` option is required and by default maximum 5 restarts
153+ The `:strategy` option is required and by default maximum 3 restarts
154154 are allowed within 5 seconds. Please check the `Supervisor` module for
155155 a complete description of the available strategies.
156156 """
@@ -162,7 +162,7 @@ defmodule Supervisor.Spec do
162162 raise ArgumentError , "expected :strategy option to be given"
163163 end
164164
165- maxR = Keyword . get ( options , :max_restarts , 5 )
165+ maxR = Keyword . get ( options , :max_restarts , 3 )
166166 maxS = Keyword . get ( options , :max_seconds , 5 )
167167
168168 assert_unique_ids ( Enum . map ( children , & elem ( & 1 , 0 ) ) )
You can’t perform that action at this time.
0 commit comments