This repository has been archived by the owner on Apr 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
defmodule Test.Supervisor do | ||
use Supervisor | ||
|
||
def start_link do | ||
:supervisor.start_link(__MODULE__, []) | ||
end | ||
import Supervisor.Spec, warn: false | ||
|
||
def init([]) do | ||
children = [ | ||
# Define workers and child supervisors to be supervised | ||
worker(Test.Server, []) | ||
] | ||
|
||
# See http://elixir-lang.org/docs/stable/Supervisor.Behaviour.html | ||
# for other strategies and supported options | ||
supervise(children, strategy: :one_for_one) | ||
Supervisor.start_link(children, [strategy: :one_for_one, name: Test.Supervisor]) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters