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

A more general channel provider #1162

Merged
merged 1 commit into from
Apr 14, 2021
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Apr 14, 2021

Motivation:

In #1158 we pulled connection creation of the connection manager into a
channel provider in order to loosen the coupling between the connection
manager and ClientConnection. This change further decouples the
ConnectionManager from the channel provider pulling out the relevant
configuration into a DefaultChannelProvider.

Modifications:

  • Refactor ClientConnection.ChannelProvider to rely on the bits of
    configuration it actually requires rather than ClientConnection.Configuration
  • Rename to DefaultChannelProvider

Result:

We can configure channels for the ConnectionManager without being tied
to ClientConnection.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Apr 14, 2021
@glbrntt glbrntt requested a review from Lukasa April 14, 2021 09:57
@glbrntt glbrntt force-pushed the gb-channel-provider branch from cda7d9c to 4efc5c0 Compare April 14, 2021 10:03
Motivation:

In grpc#1158 we pulled connection creation of the connection manager into a
channel provider in order to loosen the coupling between the connection
manager and `ClientConnection`. This change further decouples the
`ConnectionManager` from the channel provider pulling out the relevant
configuration into a `DefaultChannelProvider`.

Modifications:

- Refactor `ClientConnection.ChannelProvider` to rely on the bits of
  configuration it actually requires rather than `ClientConnection.Configuration`
- Rename to `DefaultChannelProvider`

Result:

We can configure channels for the `ConnectionManager` without being tied
to `ClientConnection`.
@glbrntt glbrntt force-pushed the gb-channel-provider branch from 4efc5c0 to 9b2c1c0 Compare April 14, 2021 12:53
@glbrntt glbrntt merged commit baa4c3c into grpc:main Apr 14, 2021
@glbrntt glbrntt deleted the gb-channel-provider branch April 14, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants