Current section

Files

Jump to
texas lib texas application.ex
Raw

lib/texas/application.ex

defmodule Texas.Application do
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
supervisor(Texas.Client.Supervisor, []),
supervisor(Registry, [:unique, ClientRegistry], id: :client),
]
opts = [strategy: :one_for_one, name: Texas.Supervisor]
Supervisor.start_link(children, opts)
end
end