mirror of
https://github.com/octoleo/restic.git
synced 2025-01-02 22:50:19 +00:00
self-update: Don't cancel download after 30 seconds
This commit is contained in:
parent
7519c73987
commit
e277a92a2f
@ -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…
Reference in New Issue
Block a user