Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gottfrois/d3239008d8ecac08ccffae0150f5e6fb to your computer and use it in GitHub Desktop.
Save gottfrois/d3239008d8ecac08ccffae0150f5e6fb to your computer and use it in GitHub Desktop.
defmodule Rabbit do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, [])
end
def init(_opts) do
children = [
worker(Rabbit.ConnectionPool, []),
]
supervise(children, strategy: :one_for_one)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment