1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-10 05:04:15 +08:00

TUN-3478: Increase download timeout to 60s

This commit is contained in:
cthuang
2020-10-22 10:38:18 +01:00
parent 04fa10ea7b
commit ea71b78e6d
2 changed files with 13 additions and 11 deletions

View File

@@ -7,7 +7,6 @@ import (
"runtime"
"strconv"
"strings"
"time"
)
// Options are the update options supported by the
@@ -53,7 +52,7 @@ func NewWorkersService(currentVersion, url, targetPath string, opts Options) Ser
// Check does a check in with the Workers API to get a new version update
func (s *WorkersService) Check() (Version, error) {
client := &http.Client{
Timeout: time.Second * 5,
Timeout: clientTimeout,
}
req, err := http.NewRequest(http.MethodGet, s.url, nil)