build: passing context parameter as required

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.

Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
Praveen M 2024-06-11 10:27:14 +05:30 committed by mergify[bot]
parent 171ba6a65d
commit 34228c6d0b

View File

@ -67,7 +67,7 @@ func recordLiveness(endpoint, drivername string, pollTime, timeout time.Duration
log.FatalLogMsg(err.Error())
}
csiConn, err := connlib.Connect(endpoint, liveMetricsManager)
csiConn, err := connlib.Connect(context.Background(), endpoint, liveMetricsManager)
if err != nil {
// connlib should retry forever so a returned error should mean
// the grpc client is misconfigured rather than an error on the network