Skip to content

Commit 7f7f855

Browse files
committed
wip
1 parent 91c502e commit 7f7f855

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

deps/rabbit/src/rabbit_stream_queue.erl

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,23 +1282,11 @@ entry_to_msg(Entry, Offset, #resource{kind = queue, name = QName}, Name, LocalPi
12821282
_ ->
12831283
<<>>
12841284
end,
1285-
RKeys0 = case XHeaders of
1286-
#{<<"x-cc">> := {list, CCs}} ->
1287-
[CC || {utf8, CC} <- CCs];
1288-
_ ->
1289-
[]
1290-
end,
1291-
RKeys1 = case XHeaders of
1292-
#{<<"x-routing-key">> := {utf8, RK}} ->
1293-
[RK | RKeys0];
1294-
_ ->
1295-
RKeys0
1296-
end,
1297-
RKeys = case RKeys1 of
1298-
[] ->
1299-
[QName];
1285+
RKeys = case XHeaders of
1286+
#{<<"x-routing-key">> := {utf8, RK}} ->
1287+
[RK];
13001288
_ ->
1301-
RKeys1
1289+
[QName]
13021290
end,
13031291
Mc1 = mc:set_annotation(?ANN_EXCHANGE, Exchange, Mc0),
13041292
Mc2 = mc:set_annotation(?ANN_ROUTING_KEYS, RKeys, Mc1),

0 commit comments

Comments
 (0)