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

Move named channel back into autoconfigure module #96

Merged

Conversation

onobc
Copy link
Collaborator

@onobc onobc commented Jan 13, 2025

This commit moves the channel config ("NamedChannel") back to autoconfigure module as the effort to move to core turns out to be more trouble than it is worth at this time.

Fixes #92

This commit moves the channel config ("NamedChannel") back to
autoconfigure module as the effort to move to core turns out to
be more trouble than it is worth at this time.

Fixes spring-projects-experimental#92
@onobc onobc requested a review from dsyer January 13, 2025 06:30
}

@Override
public String getTarget(String authority) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I found that having the getTarget next to the getChannel made the code a bit easier to follow than when it was in the NamedChannelVirtualTargets.

/**
* Represents the configuration for a {@link ManagedChannel gRPC channel}.
*/
public static class ChannelConfig {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is identically the NamedChannel from core renamed to ChannelConfig. Removing the "named" from the name removes the implication that it is has a name but rather it is just channel configuration.

I am ok w/ NamedChannel as well though and really I know better than renaming during a move around like this. I am glad to move it back - just lmk.

@dsyer dsyer merged commit 87e26c3 into spring-projects-experimental:main Jan 13, 2025
1 check passed
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.

Fix generated config props for named channels
2 participants