diff --git a/main.go b/main.go index d9bfe4c..793c5b9 100644 --- a/main.go +++ b/main.go @@ -44,8 +44,12 @@ type FrontendConfig struct { S3Enabled bool `json:"s3Enabled"` } +var client = http.Client{ + Timeout: 10 * time.Second, +} + func testUrl(url string) (*http.Response, error) { - resp, err := http.Get(url) + resp, err := client.Get(url) if err != nil { return resp, err }