/__w/shurbej/shurbej/_build/test/cover/aggregate/shurbej_store_sup.html

1 -module(shurbej_store_sup).
2 -behaviour(supervisor).
3
4 -export([start_link/0, init/1]).
5
6 start_link() ->
7 1 supervisor:start_link({local, ?MODULE}, ?MODULE, []).
8
9 init([]) ->
10 1 SupFlags = #{
11 strategy => one_for_one,
12 intensity => 5,
13 period => 10
14 },
15 1 Children = [
16 #{
17 id => shurbej_files,
18 start => {shurbej_files, start_link, []},
19 type => worker
20 },
21 #{
22 id => shurbej_version_sup,
23 start => {shurbej_version_sup, start_link, []},
24 type => supervisor
25 }
26 ],
27 1 {ok, {SupFlags, Children}}.
Line Hits Source