Increase update url fetching timeout to 3 seconds (#1704)
This commit is contained in:
committed by
Harshavardhana
parent
9a454e714d
commit
a9b0b14149
+2
-2
@@ -145,9 +145,9 @@ func getReleaseUpdate(updateURL string) {
|
||||
newUpdateURLPrefix := updateURL + "/" + runtime.GOOS + "-" + runtime.GOARCH
|
||||
newUpdateURL := newUpdateURLPrefix + "/mc.shasum"
|
||||
|
||||
// Instantiate a new client with 1 sec timeout.
|
||||
// Instantiate a new client with 3 sec timeout.
|
||||
client := &http.Client{
|
||||
Timeout: 500 * time.Millisecond,
|
||||
Timeout: 3000 * time.Millisecond,
|
||||
}
|
||||
|
||||
// Get the downloadURL.
|
||||
|
||||
Reference in New Issue
Block a user