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

let a client accept external client_args #39

Merged
merged 11 commits into from
Feb 15, 2024
Merged

let a client accept external client_args #39

merged 11 commits into from
Feb 15, 2024

Conversation

kickster97
Copy link
Member

This PR lets amqp-client be able to take in external client arguments so it can present more accurate client information for connections.

In the image below we see it states amqp-client instead of LavinMQ.
If it was RabbitMQ, it would state RabbitMQ so assuming that is the standard
image

@kickster97 kickster97 requested a review from spuun December 4, 2023 16:14
src/amqp-client/connection.cr Outdated Show resolved Hide resolved
@kickster97 kickster97 marked this pull request as ready for review December 13, 2023 08:37
@kickster97 kickster97 requested review from spuun and removed request for spuun December 13, 2023 08:52
src/amqp-client.cr Outdated Show resolved Hide resolved
src/amqp-client.cr Show resolved Hide resolved
@kickster97
Copy link
Member Author

@carlhoerberg wdyt, ready or not?

@kickster97 kickster97 requested review from carlhoerberg and removed request for carlhoerberg February 13, 2024 14:51
src/amqp-client.cr Outdated Show resolved Hide resolved
platform: "Crystal",
version: AMQP::Client::VERSION,
capabilities: Arguments.new({
connection_name: name || connection_information.name,
Copy link
Member

Choose a reason for hiding this comment

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

can the name assigment be done earlier, so that this method don't have to receive both arguments, just the ConnectionInformation with name set?

Copy link
Member Author

Choose a reason for hiding this comment

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

Put it before right before start() now

@kickster97 kickster97 merged commit 05053d1 into main Feb 15, 2024
3 checks passed
@kickster97 kickster97 deleted the client_args branch February 15, 2024 11:10
@carlhoerberg
Copy link
Member

carlhoerberg commented Mar 9, 2024

@kickster97 make to always squash PRs, don't merge the whole PR commit history with main. Now we have "format", "fix" etc in the main commit history.

@kickster97
Copy link
Member Author

@kickster97 make to always squash PRs, don't merge the whole PR commit history with main. Now we have "format", "fix" etc in the main commit history.

Yes ofc! my mistake

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