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

Use message context when publishing #22

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

igtulm
Copy link
Contributor

@igtulm igtulm commented Dec 1, 2023

We found that message publishing doesn't support context cancellation.

The amqp091-go library used by the project has deprecated the Publish method in favor of PublishWithContext since 1.5.0.

To address this issue, we're updating the dependency on amqp091-go to version 1.9.0. Additionally, we're replacing the usage of Publish with PublishWithContext to ensure that message publishing is properly cancelable.

This change is backward compatible and doesn't affect the functionality of the library. It only ensures that the library uses the recommended and up-to-date API of amqp091-go.

@m110
Copy link
Member

m110 commented Dec 1, 2023

Thank you @igtulm!

@m110 m110 merged commit 26e4c4a into ThreeDotsLabs:master Dec 1, 2023
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.

2 participants