Skip to content

Commit 483a0b4

Browse files
committed
Tau - fix erlang superviser spec for optional midi (based on env var)
In erlang concatenating lists with | requires the list to be on the right hand side. Also wasn't using the newly matched MIDIChildSpecs var.
1 parent 4ee75a9 commit 483a0b4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/server/beam/tau/src/tau_server/tau_server_sup.erl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@ init(_Args) ->
8383
ChildSpecs;
8484

8585
true ->
86-
[ChildSpecs | #{id => tau_server_midi,
87-
start => {tau_server_midi,
88-
start_link,
89-
[CueServer]}}]
90-
86+
[#{id => tau_server_midi,
87+
start => {tau_server_midi,
88+
start_link,
89+
[CueServer]}} | ChildSpecs]
9190

9291
end,
9392

94-
{ok, {SupFlags, ChildSpecs}}.
93+
{ok, {SupFlags, MIDIChildSpecs}}.

0 commit comments

Comments
 (0)