defmodule Pooler.Application do
  @moduledoc false

  use Application

  def start(_type, _args) do
    children = [
      Pooler.PublisherPool,
      Pooler.ConsumerPool
    ]

    opts = [strategy: :one_for_one, name: Pooler.Supervisor]
    Supervisor.start_link(children, opts)
  end
end