Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Apply a default timeout to the SDK client #158

Open
MadalinaPatrichi opened this issue Aug 10, 2018 · 0 comments
Open

Apply a default timeout to the SDK client #158

MadalinaPatrichi opened this issue Aug 10, 2018 · 0 comments

Comments

@MadalinaPatrichi
Copy link
Member

e.g.: filestorage.go

ctx, cancel := context.WithTimeout(filesystem.client.Context(), filesystem.client.Timeout())

I know this is an existing pattern, however, it's not one I particularly like. I think we should just be able to apply a default timeout to the SDK client and avoid all this boilerplate.

@MadalinaPatrichi MadalinaPatrichi self-assigned this Aug 10, 2018
rjtsdl pushed a commit to rjtsdl/oci-volume-provisioner that referenced this issue Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant