Current section

Files

Jump to
pe4kin src pe4kin_app.erl
Raw

src/pe4kin_app.erl

%%%-------------------------------------------------------------------
%% @doc pe4kin application public API
%% @end
%%%-------------------------------------------------------------------
-module(pe4kin_app).
-behaviour(application).
%% Application callbacks
-export([start/2, stop/1]).
%%====================================================================
%% API
%%====================================================================
start(_StartType, _StartArgs) ->
PoolOpts = application:get_env(
pe4kin, hackney_pool,
[{timeout, 150000}, {max_connections, 100}]),
ok = hackney_pool:start_pool(pe4kin, PoolOpts),
pe4kin_sup:start_link().
%%--------------------------------------------------------------------
stop(_State) ->
ok.
%%====================================================================
%% Internal functions
%%====================================================================