Skip to content

Commit

Permalink
Fix OTP 27 float match warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HoloRin committed Sep 20, 2023
1 parent 627b29c commit e9f80a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/rabbit/src/rabbit_amqqueue_process.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,8 @@ 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;
{-0.0, _} -> Low;
{+0.0, _} -> Low;
{Ingress, Egress} when Egress / Ingress < ?CONSUMER_BIAS_RATIO -> High;
{_, _} -> Low
end.
Expand Down

0 comments on commit e9f80a5

Please sign in to comment.