Skip to content

Commit

Permalink
Remove a missed distinction between default/lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoguin committed May 11, 2022
1 parent afe0689 commit 5fb04da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions deps/rabbit/src/rabbit_variable_queue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2002,11 +2002,7 @@ count_pending_acks(#vqstate { ram_pending_ack = RPA,
gb_trees:size(RPA) + gb_trees:size(DPA) + gb_trees:size(QPA).

purge_betas_and_deltas(DelsAndAcksFun, State = #vqstate { mode = Mode }) ->
State0 = #vqstate { q3 = Q3 } =
case Mode of
lazy -> maybe_deltas_to_betas(DelsAndAcksFun, State);
_ -> State
end,
State0 = #vqstate { q3 = Q3 } = maybe_deltas_to_betas(DelsAndAcksFun, State),

case ?QUEUE:is_empty(Q3) of
true -> State0;
Expand Down

0 comments on commit 5fb04da

Please sign in to comment.