This commit is contained in:
anlicheng 2025-04-18 16:55:04 +08:00
parent 7d031e8f1f
commit fadf00eb52

View File

@ -27,7 +27,16 @@ start_link() ->
%% modules => modules()} % optional
init([]) ->
SupFlags = #{strategy => one_for_one, intensity => 1000, period => 3600},
ChildSpecs = [],
ChildSpecs = [
#{
id => 'efka_server_sup',
start => {'efka_server_sup', start_link, []},
restart => permanent,
shutdown => 2000,
type => supervisor,
modules => ['efka_server_sup']
}
],
{ok, {SupFlags, ChildSpecs}}.
%% internal functions