Skip to content

Commit

Permalink
Apply PR feedback
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
  • Loading branch information
ansd and the-mikedavis committed Aug 24, 2023
1 parent 1cc35cf commit ea3f2c4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion deps/rabbit/include/mc.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
exchange :: rabbit_misc:resource_name(),
routing_keys = [] :: [rabbit_types:routing_key()],
count = 0 :: non_neg_integer(),
anns = #{} :: death_anns()
anns :: death_anns()
}).

-record(deaths, {first :: death_key(),
Expand Down
1 change: 0 additions & 1 deletion deps/rabbit/src/rabbit_fifo_dlx.erl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ discard(Msgs, Reason, undefined, State) ->
{State, [{mod_call, rabbit_global_counters, messages_dead_lettered,
[Reason, rabbit_quorum_queue, disabled, length(Msgs)]}]};
discard(Msgs0, Reason, {at_most_once, {Mod, Fun, Args}}, State) ->
rabbit_log:debug("DISCARD ~p", [Msgs0]),
Idxs = [I || ?MSG(I, _) <- Msgs0],
Effect = {log, Idxs,
fun (Log) ->
Expand Down
2 changes: 0 additions & 2 deletions deps/rabbit/src/rabbit_fifo_dlx_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ ack(#state{settled_ids = Ids,
state().
redeliver_messages(#state{pendings = Pendings,
settle_timeout = SettleTimeout} = State0) ->

rabbit_log:debug("ReDeliver messages ~p ", [Pendings]),
case lookup_dlx(State0) of
{not_found, State} ->
%% Configured dead-letter-exchange does (still) not exist.
Expand Down
31 changes: 0 additions & 31 deletions deps/rabbit/test/mc_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ all_tests() ->
amqpl_death_records,
amqpl_amqp_bin_amqpl,
amqp_amqpl,
stuff,
amqp_to_amqpl_data_body
].

Expand All @@ -35,40 +34,10 @@ groups() ->
{tests, [], all_tests()}
].

init_per_suite(Config) ->
Config.

end_per_suite(_Config) ->
ok.

init_per_group(_Group, Config) ->
Config.

end_per_group(_Group, _Config) ->
ok.

init_per_testcase(_TestCase, Config) ->
Config.

end_per_testcase(_TestCase, _Config) ->
ok.

%%%===================================================================
%%% Test cases
%%%===================================================================

stuff(_Config) ->
MA = #'v1_0.message_annotations'{content = [{{symbol, <<"k">>}, {utf8, <<"v">>}}]},
% Desc = {described,
% {utf8, <<"URL">>},
% {utf8, <<"https://rabbitmq.com">>}},
MAEnc = amqp10_framing:encode(MA),
ct:pal("~p", [MAEnc]),
ct:pal("~p", [amqp10_framing:decode(MAEnc)]),

% amqp10_framing:decode(Desc),
ok.

amqpl_defaults(_Config) ->
Props = #'P_basic'{},
Payload = [<<"data">>],
Expand Down

0 comments on commit ea3f2c4

Please sign in to comment.