blob: 3acb41ca001bac4152a398392c27843c7a8be30a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
-module(fib_app).
-behaviour(application).
-export([start/2]).
-export([stop/1]).
start(_Type, _Args) ->
%% Find which platform module to use and cache persistent data.
{ok, Mod} = fib_util:module(),
persistent_term:put('fib/module', Mod),
persistent_term:put('fib/current_table', Mod:current_table()),
persistent_term:put('fib/tables', Mod:tables()),
fib_sup:start_link().
stop(_State) ->
ok.
|