Remove grpc from Client connection interface

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan 2024-03-01 14:18:46 -08:00
parent 347346e3cf
commit 5bd204109f
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -737,8 +737,9 @@ func (c *Client) VersionService() versionservice.VersionClient {
return versionservice.NewVersionClient(c.conn)
}
// Conn returns the underlying GRPC connection object
func (c *Client) Conn() *grpc.ClientConn {
// Conn returns the underlying RPC connection object
// Either *grpc.ClientConn or *ttrpc.Conn
func (c *Client) Conn() any {
c.connMu.Lock()
defer c.connMu.Unlock()
return c.conn