Skip to content

Commit

Permalink
fix: rearrange supervisor even more
Browse files Browse the repository at this point in the history
  • Loading branch information
chsukivra committed Oct 15, 2024
1 parent 01632f3 commit deed038
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/raven_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ start_link() ->

init([]) ->
{ok, MaxIntensity} = application:get_env(max_restart_intensity),
Config = #{
strategy => one_for_one,
intensity => MaxIntensity,
period => 10
Spec = {
#{
strategy => one_for_one,
intensity => MaxIntensity,
period => 10
},
_Children = [
#{
id => raven_sender,
start => {raven_send_sentry_safe, start_link, []},
restart => permanent
}
]
},
SentryWorker = #{
id => raven_send,
start => {raven_send_sentry_safe, start_link, []},
restart => permanent
},
{ok,
{Config, [
SentryWorker
]}}.
{ok, Spec}.

0 comments on commit deed038

Please sign in to comment.