Merge pull request 2187 from restic/fix-2181

self-update: Don't cancel download after 30s
This commit is contained in:
Alexander Neumann 2019-02-24 21:21:55 +01:00
commit 7b8d1dc040
2 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1,3 @@
Bugfix: Don't cancel timeout after 30 seconds for self-update
https://github.com/restic/restic/issues/2181

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