Skip to content

Commit 314617c

Browse files
committed
Do not use the default retryhttp client for state update; use a no-timeout client.
The default client times out after 30 seconds, which prevents users with slow internet connections from successfully running `state update`.
1 parent 71944be commit 314617c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/updater/fetcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Fetcher struct {
2626
}
2727

2828
func NewFetcher(an analytics.Dispatcher) *Fetcher {
29-
return &Fetcher{retryhttp.DefaultClient, an}
29+
return &Fetcher{retryhttp.NewClient(0, retryhttp.DefaultRetries), an}
3030
}
3131

3232
func (f *Fetcher) Fetch(update *UpdateInstaller, targetDir string) error {

0 commit comments

Comments
 (0)