From 23d19e198d219074f929e7334149fcadd6c17bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Wo=C5=82ek?= Date: Wed, 24 Jan 2024 15:11:20 +0100 Subject: [PATCH] Remove type reason as it is private --- lib/membrane/bin/callback_context.ex | 2 +- lib/membrane/core/parent/crash_group.ex | 3 +-- lib/membrane/pipeline/callback_context.ex | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/membrane/bin/callback_context.ex b/lib/membrane/bin/callback_context.ex index 6f70672bf..1d929f601 100644 --- a/lib/membrane/bin/callback_context.ex +++ b/lib/membrane/bin/callback_context.ex @@ -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 diff --git a/lib/membrane/core/parent/crash_group.ex b/lib/membrane/core/parent/crash_group.ex index 5608ab9a4..7d90f91f5 100644 --- a/lib/membrane/core/parent/crash_group.ex +++ b/lib/membrane/core/parent/crash_group.ex @@ -10,7 +10,6 @@ defmodule Membrane.Core.Parent.CrashGroup do use Bunch.Access @type name() :: any() - @type reason() :: any() @type t :: %__MODULE__{ name: name(), @@ -18,7 +17,7 @@ defmodule Membrane.Core.Parent.CrashGroup do members: [Membrane.Child.name()], detonating?: boolean(), crash_initiator: Membrane.Child.name(), - reason: reason() + reason: any() } @enforce_keys [:name, :mode] diff --git a/lib/membrane/pipeline/callback_context.ex b/lib/membrane/pipeline/callback_context.ex index b9fc4efa9..2bc41c644 100644 --- a/lib/membrane/pipeline/callback_context.ex +++ b/lib/membrane/pipeline/callback_context.ex @@ -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