Add src/hk_messaging_sup.erl
Browse files1234567891011121314151617181920212223242526%%%-------------------------------------------------------------------%%% @doc Supervises the messaging plane (currently a single portal%%% process; split into per-conversation workers here if message%%% volume ever warranted it -- noted, not pre-built).%%% @end%%%--------------------------------------------------------------------module(hk_messaging_sup).-behaviour(supervisor).
-export([start_link/0, init/1]).
start_link() -> hk_sup_util:start_link_retry( fun() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []) end).
init([]) -> SupFlags = #{strategy => one_for_one, intensity => 10, period => 10}, Children = [ #{id => hk_messaging_portal, start => {hk_messaging_portal, start_link, []}, restart => permanent, shutdown => 5000, type => worker, modules => [hk_messaging_portal]} ], {ok, {SupFlags, Children}}.src/hk_messaging_sup.erlAdded+26