Skip to content

Commit 07fcfd1

Browse files
committed
Move the comments within the file
1 parent 501aeee commit 07fcfd1

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

lib/membrane/core/element/diamond_detection_controller.ex

+25-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
11
defmodule Membrane.Core.Element.DiamondDetectionController do
22
@moduledoc false
33

4-
alias __MODULE__.{DiamondLogger, PathInGraph}
5-
alias __MODULE__.PathInGraph.Vertex
6-
alias Membrane.Core.Element.State
7-
alias Membrane.Element.PadData
8-
9-
require Membrane.Core.Message, as: Message
10-
require Membrane.Logger
11-
require Membrane.Pad, as: Pad
12-
13-
@component_path_prefix "__membrane_component_path_64_byte_prefix________________________"
14-
15-
@type diamond_detection_message() :: %{
16-
:type =>
17-
:start
18-
| :start_trigger
19-
| :diamond_detection
20-
| :trigger
21-
| :delete_ref
22-
| :delete_trigger_ref,
23-
optional(:ref) => reference(),
24-
optional(:path) => PathInGraph.t(),
25-
optional(:pad_ref) => Pad.ref()
26-
}
27-
284
# DESCRIPTION OF THE ALGORITHM OF FINDING DIAMONDS IN THE PIPELINE
295

306
# Definitions:
@@ -96,6 +72,31 @@ defmodule Membrane.Core.Element.DiamondDetectionController do
9672
# previous time together make a diamond. Then, the element logs the found diamond
9773
# and doesn't forward proper searching fruther
9874

75+
alias __MODULE__.{DiamondLogger, PathInGraph}
76+
alias __MODULE__.PathInGraph.Vertex
77+
alias Membrane.Core.Element.State
78+
alias Membrane.Element.PadData
79+
80+
require Membrane.Core.Message, as: Message
81+
require Membrane.Logger
82+
require Membrane.Pad, as: Pad
83+
84+
@component_path_prefix "__membrane_component_path_64_byte_prefix________________________"
85+
86+
@type diamond_detection_message() :: %{
87+
:type =>
88+
:start
89+
| :start_trigger
90+
| :diamond_detection
91+
| :trigger
92+
| :delete_ref
93+
| :delete_trigger_ref,
94+
optional(:ref) => reference(),
95+
optional(:path) => PathInGraph.t(),
96+
optional(:pad_ref) => Pad.ref()
97+
}
98+
99+
99100
@spec handle_diamond_detection_message(diamond_detection_message(), State.t()) :: State.t()
100101
def handle_diamond_detection_message(%{type: type} = message, state) do
101102
case type do

0 commit comments

Comments
 (0)