Skip to content

Commit

Permalink
build: passing context parameter as required
Browse files Browse the repository at this point in the history
Version 0.18.0 of github.com/kubernetes-csi/csi-lib-utils
added support for structured logging.
This commit includes passing the context parameter for the
necessary function.

ref: kubernetes-csi/csi-lib-utils#149

Signed-off-by: Praveen M <[email protected]>
  • Loading branch information
iPraveenParihar committed May 14, 2024
1 parent c1aa091 commit d66f1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sidecar/internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type clientImpl struct {

// Connect to the GRPC client
func (c *clientImpl) connect(address string) (*grpc.ClientConn, error) {
return connection.Connect(address, metrics.NewCSIMetricsManager(""), connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
return connection.Connect(context.TODO(), address, metrics.NewCSIMetricsManager(""), connection.OnConnectionLoss(connection.ExitOnConnectionLoss()))
}

// New creates and returns the GRPC client
Expand Down

0 comments on commit d66f1ad

Please sign in to comment.