@@ -135,20 +135,21 @@ handle_call(Request, From, State) ->
135135 rabbit_log :info (" ~s received unhandled call from ~p : ~p " , [? MODULE , From , Request ]),
136136 {noreply , State }.
137137
138- handle_cast ({queue_event , QRef , { _From , { machine , lookup_topology }} },
139- # state {queue_ref = QRef } = State0 ) ->
138+ handle_cast ({dlx_event , _LeaderPid , lookup_topology },
139+ # state {queue_ref = _ } = State0 ) ->
140140 State = lookup_topology (State0 ),
141141 redeliver_and_ack (State );
142- handle_cast ({queue_event , QRef , { From , Evt } },
143- # state {queue_ref = QRef ,
142+ handle_cast ({dlx_event , LeaderPid , Evt },
143+ # state {queue_ref = _QRef ,
144144 dlx_client_state = DlxState0 } = State0 ) ->
145145 % % received dead-letter message from source queue
146- {ok , DlxState , Actions } = rabbit_fifo_dlx_client :handle_ra_event (From , Evt , DlxState0 ),
146+ {ok , DlxState , Actions } = rabbit_fifo_dlx_client :handle_ra_event (LeaderPid , Evt , DlxState0 ),
147147 State1 = State0 # state {dlx_client_state = DlxState },
148148 State = handle_queue_actions (Actions , State1 ),
149149 {noreply , State };
150150handle_cast ({queue_event , QRef , Evt },
151151 # state {queue_type_state = QTypeState0 } = State0 ) ->
152+
152153 case rabbit_queue_type :handle_event (QRef , Evt , QTypeState0 ) of
153154 {ok , QTypeState1 , Actions } ->
154155 % % received e.g. confirm from target queue
0 commit comments