aboutsummaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http.go b/http.go
index 24e0b4d..daf8945 100644
--- a/http.go
+++ b/http.go
@@ -6,8 +6,8 @@ import (
"time"
)
-func HttpStatusOK(url string, status int) error {
- client := &http.Client{Timeout: 5 * time.Second}
+func HttpStatusOK(url string, timeout, status int) error {
+ client := &http.Client{Timeout: time.Duration(timeout) * time.Second}
resp, err := client.Get(url)