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

Add public API to create connection IDs #1737

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Dec 8, 2023

Motivation:

Each connection pool delegate method relies on a connection ID. IDs are opaque to users and are created by gRPC from the underlying connection manager. However, this makes testing a connection pool delegate difficult as users must create real connections.

Modifications:

  • Add a public init to the connection ID

Result:

Users can test connection pool delegate implementations without having a connection pool.

Motivation:

Each connection pool delegate method relies on a connection ID. IDs are
opaque to users and are created by gRPC from the underlying connection
manager. However, this makes testing a connection pool delegate
difficult as users must create real connections.

Modifications:

- Add a public init to the connection ID

Result:

Users can test connection pool delegate implementations without having a
connection pool.
@glbrntt glbrntt added the semver/minor Adds new public API. label Dec 8, 2023
@glbrntt glbrntt merged commit 39c567a into grpc:main Dec 8, 2023
14 checks passed
@glbrntt glbrntt deleted the connection-id branch December 8, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants