Skip to content

Commit

Permalink
Remove type reason as it is private
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikWolek committed Jan 24, 2024
1 parent 7c85a47 commit 23d19e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/membrane/bin/callback_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Membrane.Bin.CallbackContext do
optional(:pad_options) => map(),
optional(:members) => [Membrane.Child.name()],
optional(:crash_initiator) => Membrane.Child.name(),
optional(:reason) => Membrane.Core.Parent.CrashGroup.reason(),
optional(:reason) => any(),
optional(:start_of_stream_received?) => boolean()
}
end
3 changes: 1 addition & 2 deletions lib/membrane/core/parent/crash_group.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ defmodule Membrane.Core.Parent.CrashGroup do
use Bunch.Access

@type name() :: any()
@type reason() :: any()

@type t :: %__MODULE__{
name: name(),
mode: :temporary,
members: [Membrane.Child.name()],
detonating?: boolean(),
crash_initiator: Membrane.Child.name(),
reason: reason()
reason: any()
}

@enforce_keys [:name, :mode]
Expand Down
2 changes: 1 addition & 1 deletion lib/membrane/pipeline/callback_context.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule Membrane.Pipeline.CallbackContext do
optional(:from) => [GenServer.from()],
optional(:members) => [Membrane.Child.name()],
optional(:crash_initiator) => Membrane.Child.name(),
optional(:reason) => Membrane.Core.Parent.CrashGroup.reason(),
optional(:reason) => any(),
optional(:start_of_stream_received?) => boolean()
}
end

0 comments on commit 23d19e1

Please sign in to comment.