Skip to content

Commit

Permalink
Merge pull request #9492 from rabbitmq/mergify/bp/v3.10.x/pr-9489
Browse files Browse the repository at this point in the history
Fix OTP 27 float match warning (backport #9485) (backport #9488) (backport #9489)
  • Loading branch information
michaelklishin authored Sep 20, 2023
2 parents 0e3e30e + f196aa4 commit 5e8fa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/rabbit/src/rabbit_amqqueue_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ prioritise_cast(Msg, _Len, State) ->

consumer_bias(#q{backing_queue = BQ, backing_queue_state = BQS}, Low, High) ->
case BQ:msg_rates(BQS) of
{0.0, _} -> Low;
{Ingress, _} when Ingress =:= +0.0 orelse Ingress =:= -0.0 -> Low;
{Ingress, Egress} when Egress / Ingress < ?CONSUMER_BIAS_RATIO -> High;
{_, _} -> Low
end.
Expand Down

0 comments on commit 5e8fa0d

Please sign in to comment.