Remove grpc from Client connection interface
Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
parent
347346e3cf
commit
5bd204109f
@ -737,8 +737,9 @@ func (c *Client) VersionService() versionservice.VersionClient {
|
|||||||
return versionservice.NewVersionClient(c.conn)
|
return versionservice.NewVersionClient(c.conn)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Conn returns the underlying GRPC connection object
|
// Conn returns the underlying RPC connection object
|
||||||
func (c *Client) Conn() *grpc.ClientConn {
|
// Either *grpc.ClientConn or *ttrpc.Conn
|
||||||
|
func (c *Client) Conn() any {
|
||||||
c.connMu.Lock()
|
c.connMu.Lock()
|
||||||
defer c.connMu.Unlock()
|
defer c.connMu.Unlock()
|
||||||
return c.conn
|
return c.conn
|
||||||
|
Loading…
Reference in New Issue
Block a user