Skip to content
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

[Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport #38850

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

jderusse
Copy link
Member

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #38849
License MIT
Doc PR TODO

When user provides a DSN that looks like a queueUrl, we don't need to call the getQueueUrl method. This PR inject the known queueUrl and prevent performing a useless call to the API when sending a message

@jderusse jderusse requested a review from sroze as a code owner October 27, 2020 23:23
@jderusse jderusse changed the title Do not call getQueueUrl when the url is known [Messenger] Do not call getQueueUrl when the url is known in AmazonSqs transport Oct 27, 2020
@jderusse jderusse added this to the 5.x milestone Oct 27, 2020
@fabpot
Copy link
Member

fabpot commented Nov 4, 2020

Thank you @jderusse.

@fabpot fabpot merged commit 57e39b4 into symfony:5.x Nov 4, 2020
@chalasr chalasr modified the milestones: 5.x, 5.2 Nov 4, 2020
@jderusse jderusse deleted the sqs-queue-url branch November 4, 2020 17:45
@fabpot fabpot mentioned this pull request Nov 10, 2020
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.

[Messenger][SQS] Prevent calling getQueueUrl() when DSN is a SQS queue URL
4 participants