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