Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make ListOptions timeout configurable #322

Closed
wants to merge 1 commit into from
Closed

make ListOptions timeout configurable #322

wants to merge 1 commit into from

Conversation

khrisrichardson
Copy link

@khrisrichardson khrisrichardson commented May 24, 2021

I appreciate the recent addition of context.WithTimeout in remote.go, however since then I have been regularly running into situations where 0.6s was insufficient for the equivalent of ls-remote, so this PR bumps the context deadline to 10s and makes it configurable should that not be sufficient.

@khrisrichardson
Copy link
Author

khrisrichardson commented May 24, 2021

Ha ha. Just saw #321 :) I've bumped the default timeout in this PR from 1s to 10s in solidarity with #321. The maintainers will have to decide whether they want the timeout configurable or not.

@mcuadros
Copy link
Member

Since there is no other method where you can configure the timeout I rather leaving like this. Thanks anyway

@mcuadros mcuadros closed this May 24, 2021
@khrisrichardson khrisrichardson deleted the ListOptions.Timeout branch May 24, 2021 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants