Skip to content

Commit 46e8f9a

Browse files
committed
fix pattern match
1 parent 5d563d0 commit 46e8f9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

deps/rabbit/src/rabbit_fifo_dlx_worker.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ handle_call(Request, From, State) ->
135135
rabbit_log:info("~ts received unhandled call from ~tp: ~tp", [?MODULE, From, Request]),
136136
{noreply, State}.
137137

138-
handle_cast({dlx_event, _LeaderPid, {machine, lookup_topology}},
138+
handle_cast({dlx_event, _LeaderPid, lookup_topology},
139139
#state{queue_ref = _} = State0) ->
140140
State = lookup_topology(State0),
141141
redeliver_and_ack(State);

deps/rabbit/test/rabbit_fifo_dlx_integration_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ reject_publish(Config, QArg) when is_tuple(QArg) ->
589589
ok = publish_confirm(Ch, SourceQ),
590590
RaName = ra_name(SourceQ),
591591
eventually(?_assertMatch([{2, 2}], %% 2 messages with 1 byte each
592-
dirty_query([Server], RaName, fun rabbit_fifo:query_stat_dlx/1))),
592+
dirty_query([Server], RaName,
593+
fun rabbit_fifo:query_stat_dlx/1))),
593594
%% Now, we have 2 expired messages in the source quorum queue's discards queue.
594595
%% Now that we are over the limit we expect publishes to be rejected.
595596
?assertEqual(fail, publish_confirm(Ch, SourceQ)),

0 commit comments

Comments
 (0)