Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
The message size histogram metric is available on main and will ship in
RabbitMQ 4.1, but isn't available in RabbitMQ v4.0.x
  • Loading branch information
ansd committed Sep 27, 2024
1 parent 48ebf7b commit 7e6a666
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions deps/rabbit/src/rabbit_amqp_session.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2341,14 +2341,8 @@ incoming_link_transfer(
end,
validate_transfer_snd_settle_mode(SndSettleMode, Settled),
validate_transfer_rcv_settle_mode(RcvSettleMode, Settled),
<<<<<<< HEAD
validate_message_size(PayloadBin, MaxMessageSize),
=======
PayloadSize = iolist_size(PayloadBin),
validate_message_size(PayloadSize, MaxMessageSize),
rabbit_msg_size_metrics:observe(?PROTOCOL, PayloadSize),
messages_received(Settled),
>>>>>>> 6863ae14dd (Comply with §2.2.2 of Anonymous Terminus extension)

Mc0 = mc:init(mc_amqp, PayloadBin, #{}),
case lookup_target(LinkExchange, LinkRKey, Mc0, Vhost, User, PermCache0) of
Expand Down

0 comments on commit 7e6a666

Please sign in to comment.