diff --git a/src/monic_sup.erl b/src/monic_sup.erl index 875d19c..a93dc18 100644 --- a/src/monic_sup.erl +++ b/src/monic_sup.erl @@ -62,8 +62,9 @@ init([]) -> Web = {webmachine_mochiweb, {webmachine_mochiweb, start, [WebConfig]}, permanent, 5000, worker, dynamic}, + LruConfig = [100, fun monic_file:close/1], Lru = {monic_lru, - {monic_lru, start_link, [100, fun monic_file:close/1]}, + {monic_lru, start_link, LruConfig}, permanent, 5000, worker, dynamic}, Processes = [Web, Lru], {ok, { {one_for_one, 10, 10}, Processes} }.