diff --git a/containeranalysis/apiv1/container_analysis_client.go b/containeranalysis/apiv1/container_analysis_client.go index b2f2cb70938..a24433d5321 100644 --- a/containeranalysis/apiv1/container_analysis_client.go +++ b/containeranalysis/apiv1/container_analysis_client.go @@ -110,9 +110,6 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error } // GetGrafeasClient returns a grafeas client connected to containeranalysis. -// -// Calling Close on either the grafeas or containeranalysis client will close -// the shared connection in both. func (c *Client) GetGrafeasClient() *grafeas.Client { return c.grafeasClient } @@ -124,7 +121,10 @@ func (c *Client) Connection() *grpc.ClientConn { // Close closes the connection to the API service. The user should invoke this when // the client is no longer required. +// +// Calling Close will also close the underlying grafeas client. func (c *Client) Close() error { + c.grafeasClient.Close() return c.connPool.Close() }