Increase timeout to 5 seconds
This commit is contained in:
parent
b1daca94f9
commit
fd45155809
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -58,8 +58,8 @@ func index(w http.ResponseWriter, r *http.Request) {
|
|||
config = config_new
|
||||
}
|
||||
|
||||
// get service status'
|
||||
timeout := 3 * time.Second
|
||||
// get service statuses
|
||||
timeout := 5 * time.Second
|
||||
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||
defer cancel()
|
||||
data := scanner.CheckServiceBatch(ctx, config.Service, config.BasicAuthUsername, config.BasicAuthPassword)
|
||||
|
|
Loading…
Reference in a new issue