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

publish message without exchange declaration #116

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

Jafarili
Copy link
Contributor

Thanks to the hint from @achilleasa in this PR #115, I've updated the code and made the publish to exchange without declaration possible.
The implementation is quite similar to the Queue implementation and I've been testing it on my application and it's working fine.

Copy link
Owner

@achilleasa achilleasa left a comment

Choose a reason for hiding this comment

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

Thanks for this PR! I've left a few minor comments. Once addressed, we can land the PR and push a new release out.

lib/src/client/channel.dart Show resolved Hide resolved
@@ -579,6 +580,12 @@ class _ChannelImpl implements Channel {
..arguments = arguments;

Completer<Exchange> opCompleter = Completer<Exchange>();

if (!declare) {
Copy link
Owner

Choose a reason for hiding this comment

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

Can you please add a test case similar to this in the exchange test suite?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

@achilleasa achilleasa merged commit 8c86e76 into achilleasa:master Mar 25, 2024
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