Skip to content

Commit 526ea0c

Browse files
Increase update download timeout (#287)
* Increase update download timeout from 30s to 5min - 30s was too short for downloading the ~15MB binary on slower connections - Users were hitting "context deadline exceeded" during `deepsource update` * Bump version to 2.0.53
1 parent 5a2b74a commit 526ea0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.52
1+
2.0.53

command/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func runUpdate(cmd *cobra.Command) error {
4545
fmt.Fprintln(w, pterm.Green("✓")+" Platform: "+runtime.GOOS+"/"+runtime.GOARCH)
4646
fmt.Fprintln(w, pterm.Green("✓")+" Version: v"+state.Version)
4747

48-
applyClient := &http.Client{Timeout: 30 * time.Second}
48+
applyClient := &http.Client{Timeout: 5 * time.Minute}
4949
data, err := update.DownloadUpdate(applyClient, state)
5050
if err != nil {
5151
return fmt.Errorf("downloading update: %w", err)

0 commit comments

Comments
 (0)