forked from TrueCloudLab/restic
self-update: Don't cancel download after 30 seconds
This commit is contained in:
parent
7519c73987
commit
e277a92a2f
1 changed files with 0 additions and 3 deletions
|
@ -112,9 +112,6 @@ func GitHubLatestRelease(ctx context.Context, owner, repo string) (Release, erro
|
||||||
}
|
}
|
||||||
|
|
||||||
func getGithubData(ctx context.Context, url string) ([]byte, error) {
|
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)
|
req, err := http.NewRequest(http.MethodGet, url, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue