Increase timeout to 5 seconds

This commit is contained in:
Anthony Wang 2024-05-26 11:37:37 -05:00
parent b1daca94f9
commit fd45155809
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ

View file

@ -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)