mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
rebase: update K8s packages to v0.32.1
Update K8s packages in go.mod to v0.32.1 Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
6
vendor/go.etcd.io/etcd/client/v3/client.go
generated
vendored
6
vendor/go.etcd.io/etcd/client/v3/client.go
generated
vendored
@ -148,7 +148,7 @@ func (c *Client) Close() error {
|
||||
c.Lease.Close()
|
||||
}
|
||||
if c.conn != nil {
|
||||
return toErr(c.ctx, c.conn.Close())
|
||||
return ContextError(c.ctx, c.conn.Close())
|
||||
}
|
||||
return c.ctx.Err()
|
||||
}
|
||||
@ -573,7 +573,9 @@ func isUnavailableErr(ctx context.Context, err error) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func toErr(ctx context.Context, err error) error {
|
||||
// ContextError converts the error into an EtcdError if the error message matches one of
|
||||
// the defined messages; otherwise, it tries to retrieve the context error.
|
||||
func ContextError(ctx context.Context, err error) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user