feat(api): bump default Docker library timeout to 60s (#3038)

pull/3043/head
Anthony Lapenna 2019-07-24 11:56:31 +12:00 committed by GitHub
parent 66b6a6cbbd
commit 5b91b1a6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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
} }