Skip to content

Commit eb87a30

Browse files
authored
Release v1.2.1 (#953)
1 parent b1e8ede commit eb87a30

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Master
3+
## 1.2.1
44
* Improve stream format error. [#950](https://github.com/membraneframework/membrane_core/pull/950)
55
* Minor fixes in `Membrane.Connector`. [#952](https://github.com/membraneframework/membrane_core/pull/952)
66

lib/membrane/core/telemetry.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,16 @@ defmodule Membrane.Core.Telemetry do
126126
end
127127
end
128128

129+
@doc false
130+
@spec identity(term()) :: term()
131+
def identity(term), do: term
132+
129133
defmacrop report_datapoint(datapoint_name, do: lazy_block) do
130134
unless Macro.quoted_literal?(datapoint_name), do: raise("Datapoint type must be a literal")
131135

136+
# @legacy? |> indentity() is a hack to mute compilation warnings
132137
cond do
133-
@legacy? ->
138+
@legacy? |> identity() ->
134139
do_legacy_telemetry(datapoint_name, lazy_block)
135140

136141
datapoint_gathered?(datapoint_name) ->

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Membrane.Mixfile do
22
use Mix.Project
33

4-
@version "1.2.0"
4+
@version "1.2.1"
55
@source_ref "v#{@version}"
66

77
def project do

0 commit comments

Comments
 (0)