From e277a92a2fb0c13903ff0e0d416bbb00a4a67e7a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 23 Feb 2019 11:15:18 +0100 Subject: [PATCH] self-update: Don't cancel download after 30 seconds --- internal/selfupdate/github.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/selfupdate/github.go b/internal/selfupdate/github.go index 541112abc..637f6765e 100644 --- a/internal/selfupdate/github.go +++ b/internal/selfupdate/github.go @@ -112,9 +112,6 @@ func GitHubLatestRelease(ctx context.Context, owner, repo string) (Release, erro } func getGithubData(ctx context.Context, url string) ([]byte, error) { - ctx, cancel := context.WithTimeout(ctx, githubAPITimeout) - defer cancel() - req, err := http.NewRequest(http.MethodGet, url, nil) if err != nil { return nil, err