Bug fix: larger timeout for healtcheck

This commit is contained in:
Quentin McGaw
2020-12-30 15:24:46 +00:00
parent 3a20b84f3a
commit d4ba1b1e09

View File

@@ -10,7 +10,7 @@ import (
)
func (c *cli) HealthCheck(ctx context.Context) error {
const timeout = 3 * time.Second
const timeout = 10 * time.Second
httpClient := &http.Client{Timeout: timeout}
healthchecker := healthcheck.NewChecker(httpClient)
ctx, cancel := context.WithTimeout(ctx, timeout)