Skip to content

Commit 5bd2041

Browse files
committed
Remove grpc from Client connection interface
Signed-off-by: Derek McGowan <[email protected]>
1 parent 347346e commit 5bd2041

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,9 @@ func (c *Client) VersionService() versionservice.VersionClient {
737737
return versionservice.NewVersionClient(c.conn)
738738
}
739739

740-
// Conn returns the underlying GRPC connection object
741-
func (c *Client) Conn() *grpc.ClientConn {
740+
// Conn returns the underlying RPC connection object
741+
// Either *grpc.ClientConn or *ttrpc.Conn
742+
func (c *Client) Conn() any {
742743
c.connMu.Lock()
743744
defer c.connMu.Unlock()
744745
return c.conn

0 commit comments

Comments
 (0)