Merge pull request #582 from TrungACZNE/erl-bug
Fixed 'supervisor' snippet
This commit is contained in:
commit
8c0d71a72b
@ -103,8 +103,8 @@ snippet supervisor
|
|||||||
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
|
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
|
||||||
|
|
||||||
init([]) ->
|
init([]) ->
|
||||||
Server = {${0:my_server}, {$2, start_link, []},
|
Server = {${0:my_server}, {${2}, start_link, []},
|
||||||
permanent, 2000, worker, [$2]},
|
permanent, 2000, worker, [${2}]},
|
||||||
Children = [Server],
|
Children = [Server],
|
||||||
RestartStrategy = {one_for_one, 0, 1},
|
RestartStrategy = {one_for_one, 0, 1},
|
||||||
{ok, {RestartStrategy, Children}}.
|
{ok, {RestartStrategy, Children}}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user