Skip to content

Commit 95740fa

Browse files
authored
Merge pull request ActiveState#3393 from ActiveState/mitchell/dx-2947
Do not use the default retryhttp client for `state update`; use a no-timeout client.
2 parents 06648ce + 314617c commit 95740fa

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)