Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Feb 13, 2025

Initialising a message container from data stored in a
stream is a special case where we need to recover exchange
and routing key information from the following message annatations:

  • x-exchange
  • x-routing-key
  • x-cc

We do not want to do this when initialising a message container
from AMQP data just received from a publisher.

This commit introduces a new function mc_amqp:init_from_stream/2
that is to be used when needing a message container from a stream
message.


This is an automatic backport of pull request #13307 done by Mergify.

Initialising a message container from data stored in a
stream is a special case where we need to recover exchange
and routing key information from the following message annatations:

* x-exchange
* x-routing-keys
* x-cc

We do not want to do this when initialising a message container
from AMQP data just received from a publisher.

This commit introduces a new function `mc_amqp:init_from_stream/2`
that is to be used when needing a message container from a stream
message.

(cherry picked from commit 32615bf)
@michaelklishin michaelklishin merged commit c125d23 into v4.1.x Feb 13, 2025
266 of 270 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.1.x/pr-13307 branch February 13, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants