mirror of
https://github.com/minio/minio.git
synced 2025-04-28 05:38:00 -04:00
server: update command should check for 3s from 1ms. (#2175)
Programmer error :-)
This commit is contained in:
parent
bfc59b7d50
commit
ede4dd0f9c
@ -155,9 +155,9 @@ func getReleaseUpdate(updateURL string, noError bool) updateMessage {
|
|||||||
Version: minioVersion,
|
Version: minioVersion,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Instantiate a new client with 1 sec timeout.
|
// Instantiate a new client with 3 sec timeout.
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Timeout: 1 * time.Millisecond,
|
Timeout: 3 * time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch new update.
|
// Fetch new update.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user