Skip to content

[Messenger] fix manual amqp setup when autosetup disabled #40966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2021

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Apr 27, 2021

Q A
Branch? 5.x
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #39608 (comment)
License MIT
Doc PR

if (0 !== $delayInMs) {
$this->publishWithDelay($body, $headers, $delayInMs, $amqpStamp);

return;
}

if ($this->autoSetupExchange) {
$this->setupExchangeAndQueues();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved this above so in setupDelay we only need to call setupDelayExchange

@fabpot
Copy link
Member

fabpot commented Apr 29, 2021

Thank you @Tobion.

@fabpot fabpot merged commit 32534fb into symfony:5.x Apr 29, 2021
@Tobion Tobion deleted the fix-amqp-setup branch April 29, 2021 12:55
@fabpot fabpot mentioned this pull request May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants