Skip to content

api/client: support dialing and creating the client separately #55293

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boxofrad
Copy link
Contributor

In #55170, we added support for wrapping tbot's gRPC connection so that we can handle the auth server being unavailable on-startup. This PR makes it possible to create a Client from an existing (i.e. wrapped) gRPC connection.

It's a little bit inefficient in that lib/auth/authclient still creates an HTTP client which we never use, and it feels like it'd be cleaner to separate them at a lower-level - but this seems like the least disruptive approach.

changelog: api/client: support for creating a client from an existing gRPC connection

In #55170, we added support for wrapping `tbot`'s gRPC connection so that we can
handle the auth server being unavailable on-startup. This PR makes it possible
to create a Client from an existing (i.e. wrapped) gRPC connection.

It's a little bit inefficient in that `lib/auth/authclient` still creates an HTTP
client which we never use, and it feels like it'd be cleaner to separate them at
a lower-level - but this seems like the least disruptive approach.

changelog: api/client: support for creating a client from an existing gRPC connection
@boxofrad boxofrad requested a review from strideynet May 30, 2025 15:30
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.

1 participant