mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
Bug fix: larger timeout for healtcheck
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (c *cli) HealthCheck(ctx context.Context) error {
|
func (c *cli) HealthCheck(ctx context.Context) error {
|
||||||
const timeout = 3 * time.Second
|
const timeout = 10 * time.Second
|
||||||
httpClient := &http.Client{Timeout: timeout}
|
httpClient := &http.Client{Timeout: timeout}
|
||||||
healthchecker := healthcheck.NewChecker(httpClient)
|
healthchecker := healthcheck.NewChecker(httpClient)
|
||||||
ctx, cancel := context.WithTimeout(ctx, timeout)
|
ctx, cancel := context.WithTimeout(ctx, timeout)
|
||||||
|
|||||||
Reference in New Issue
Block a user