Add OTP application configuration

This commit is contained in:
Pepe 2013-04-17 17:26:12 +02:00
parent d4e9fb024a
commit d14197f014

View File

@ -25,10 +25,10 @@ start_link() ->
%% ===================================================================
init([]) ->
Params = [],
Env = proplists:delete(included_applications, application:get_all_env()),
{ok,
{
{one_for_one, 4, 1800},
[?CHILD(cache, worker, [Params])]
[?CHILD(cache, worker, [Env])]
}
}.