summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Fedotov <dfedotov@pivotal.io>2017-06-06 15:43:48 +0100
committerDaniil Fedotov <dfedotov@pivotal.io>2017-06-06 15:43:48 +0100
commit7bc2770983345eb110015f03244720be78c9ba64 (patch)
tree4c2be6ae53560338afee247a38e15f203e9511c6
parent6ad1cd16f0352a75446fcf94eb2fce2d50d69889 (diff)
downloadrabbitmq-server-git-7bc2770983345eb110015f03244720be78c9ba64.tar.gz
Comment on binary format values
-rw-r--r--src/term_to_binary_compat.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/term_to_binary_compat.erl b/src/term_to_binary_compat.erl
index 35acce0fb2..a3e1045623 100644
--- a/src/term_to_binary_compat.erl
+++ b/src/term_to_binary_compat.erl
@@ -23,10 +23,10 @@
queue_name_to_binary(#resource{kind = queue} = {resource, VHost, queue, Name}) ->
VHostBSize = byte_size(VHost),
NameBSize = byte_size(Name),
- <<131,
- 104, 4,
- 100, 0, 8, "resource",
- 109, VHostBSize:32, VHost/binary,
- 100, 0, 5, "queue",
- 109, NameBSize:32, Name/binary>>.
+ <<131, %% Binary format "version"
+ 104, 4, %% 4-element tuple
+ 100, 0, 8, "resource", %% `resource` atom
+ 109, VHostBSize:32, VHost/binary, %% Vhost binary
+ 100, 0, 5, "queue", %% `queue` atom
+ 109, NameBSize:32, Name/binary>>. %% Name binary