Skip to content

Commit 3209f33

Browse files
committed
tagged_prop() -> tagged_value()
1 parent af0cc0d commit 3209f33

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

deps/rabbit/src/mc.erl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@
6464
integer() |
6565
float() |
6666
boolean().
67-
-type tagged_prop() :: {uuid, binary()} |
68-
{utf8, binary()} |
69-
{binary, binary()} |
70-
{boolean, boolean()} |
71-
{double | float, float()} |
72-
{long | int | short | byte, integer()} |
73-
{ulong | uint | ushort | ubyte, non_neg_integer()} |
74-
{timestamp, non_neg_integer()} |
75-
{list, [tagged_prop()]} |
76-
{map, [{tagged_prop(), tagged_prop()}]} |
77-
null |
78-
undefined.
67+
-type tagged_value() :: {uuid, binary()} |
68+
{utf8, binary()} |
69+
{binary, binary()} |
70+
{boolean, boolean()} |
71+
{double | float, float()} |
72+
{long | int | short | byte, integer()} |
73+
{ulong | uint | ushort | ubyte, non_neg_integer()} |
74+
{timestamp, non_neg_integer()} |
75+
{list, [tagged_value()]} |
76+
{map, [{tagged_value(), tagged_value()}]} |
77+
null |
78+
undefined.
7979

8080
%% behaviour callbacks for protocol specific implementation
8181

@@ -93,12 +93,12 @@
9393
%% retrieve and x- header from the protocol data
9494
%% the return value should be tagged with an AMQP 1.0 type
9595
-callback x_header(binary(), proto_state()) ->
96-
tagged_prop().
96+
tagged_value().
9797

9898
%% retrieve a property field from the protocol data
9999
%% e.g. message_id, correlation_id
100100
-callback property(atom(), proto_state()) ->
101-
tagged_prop().
101+
tagged_value().
102102

103103
%% return a map of header values used for message routing,
104104
%% optionally include x- headers and / or complex types (i.e. tables, arrays etc)
@@ -176,7 +176,7 @@ set_annotation(Key, Value, BasicMessage) ->
176176
mc_compat:set_annotation(Key, Value, BasicMessage).
177177

178178
-spec x_header(Key :: binary(), state()) ->
179-
tagged_prop().
179+
tagged_value().
180180
x_header(Key, #?MODULE{protocol = Proto,
181181
annotations = Anns,
182182
data = Data}) ->

0 commit comments

Comments
 (0)