mirror of https://github.com/portainer/portainer
feat(api): bump default Docker library timeout to 60s (#3038)
parent
66b6a6cbbd
commit
5b91b1a6c9
|
@ -11,7 +11,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
unsupportedEnvironmentType = portainer.Error("Environment not supported")
|
unsupportedEnvironmentType = portainer.Error("Environment not supported")
|
||||||
|
defaultDockerRequestTimeout = 60
|
||||||
)
|
)
|
||||||
|
|
||||||
// ClientFactory is used to create Docker clients
|
// ClientFactory is used to create Docker clients
|
||||||
|
@ -103,6 +104,6 @@ func httpClient(endpoint *portainer.Endpoint) (*http.Client, error) {
|
||||||
|
|
||||||
return &http.Client{
|
return &http.Client{
|
||||||
Transport: transport,
|
Transport: transport,
|
||||||
Timeout: 30 * time.Second,
|
Timeout: defaultDockerRequestTimeout * time.Second,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue