Packages

Common functions for TencentCloud

Current section

Files

Jump to
tencent_cloud_core lib tencent_cloud application.ex
Raw

lib/tencent_cloud/application.ex

defmodule TencentCloud.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
finch_pool = Application.get_env(:tencent_cloud, :finch_pool, size: 32, count: 8)
children = [
{Finch, name: TencentCloud.Finch, pools: %{:default => finch_pool}}
]
Supervisor.start_link(children, strategy: :one_for_one, name: TencentCloud.Supervisor)
end
end