self-update: Don't cancel download after 30 seconds

This commit is contained in:
Alexander Neumann 2019-02-23 11:15:18 +01:00
parent 7519c73987
commit e277a92a2f
1 changed files with 0 additions and 3 deletions

View File

@ -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