Current section
Files
Jump to
Current section
Files
lib/app.ex
defmodule ExStatsD.App do
use Application
def start(_type, _args), do: ExStatsD.App.Sup.start_link
defmodule Sup do
use Supervisor
def start_link, do: Supervisor.start_link(__MODULE__, [])
def init([]) do
children = [
worker(ExStatsD, [])
]
supervise(children, strategy: :one_for_one)
end
end
end