1515 send_command /3 ,
1616 send_command /4 ,
1717 send_command_sync /3 ,
18- send_command_and_notify /5 ,
1918 assemble_frame /3 ]).
2019
2120% % gen_server callbacks
@@ -75,16 +74,6 @@ send_command_sync(Writer, ChannelNum, Performative) ->
7574 Request = {send_command , ChannelNum , Performative },
7675 gen_server :call (Writer , Request , ? CALL_TIMEOUT ).
7776
78- % % Delete this function when feature flag rabbitmq_4.0.0 becomes required.
79- -spec send_command_and_notify (pid (),
80- pid (),
81- rabbit_types :channel_number (),
82- performative (),
83- payload ()) -> ok | {error , blocked }.
84- send_command_and_notify (Writer , QueuePid , ChannelNum , Performative , Payload ) ->
85- Request = {send_command_and_notify , QueuePid , self (), ChannelNum , Performative , Payload },
86- maybe_send (Writer , Request ).
87-
8877% %%%%%%%%%%%%%%%%%%%%%%%%%%%
8978% %% gen_server callbacks %%%
9079% %%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -105,12 +94,6 @@ handle_cast({send_command, ChannelNum, Performative}, State0) ->
10594handle_cast ({send_command , SessionPid , ChannelNum , Performative , Payload }, State0 ) ->
10695 State1 = internal_send_command_async (ChannelNum , Performative , Payload , State0 ),
10796 State = credit_flow_ack (SessionPid , State1 ),
108- no_reply (State );
109- % % Delete below function clause when feature flag rabbitmq_4.0.0 becomes required.
110- handle_cast ({send_command_and_notify , QueuePid , SessionPid , ChannelNum , Performative , Payload }, State0 ) ->
111- State1 = internal_send_command_async (ChannelNum , Performative , Payload , State0 ),
112- State = credit_flow_ack (SessionPid , State1 ),
113- rabbit_amqqueue :notify_sent (QueuePid , SessionPid ),
11497 no_reply (State ).
11598
11699handle_call ({send_command , ChannelNum , Performative }, _From , State0 ) ->
@@ -132,10 +115,6 @@ handle_info({{'DOWN', session}, _MRef, process, SessionPid, _Reason},
132115 State0 = # state {monitored_sessions = Sessions }) ->
133116 credit_flow :peer_down (SessionPid ),
134117 State = State0 # state {monitored_sessions = maps :remove (SessionPid , Sessions )},
135- no_reply (State );
136- % % Delete below function clause when feature flag rabbitmq_4.0.0 becomes required.
137- handle_info ({'DOWN' , _MRef , process , QueuePid , _Reason }, State ) ->
138- rabbit_amqqueue :notify_sent_queue_down (QueuePid ),
139118 no_reply (State ).
140119
141120format_status (Status ) ->
0 commit comments