Current section

Files

Jump to
guard lib doorman pusher supervisor.ex
Raw

lib/doorman/pusher/supervisor.ex

defmodule Doorman.Pusher.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok)
end
def init(:ok) do
children = [
worker(Doorman.Pusher.Server, [Doorman.Pusher.Server])
]
supervise(children, strategy: :one_for_one)
end
end