mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
added a sensible default timeout for the vault client
This commit is contained in:
@@ -8,12 +8,15 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
errRedirect = errors.New("redirect")
|
errRedirect = errors.New("redirect")
|
||||||
defaultHTTPClientSetup sync.Once
|
defaultHTTPClientSetup sync.Once
|
||||||
defaultHTTPClient = &http.Client{}
|
defaultHTTPClient = &http.Client{
|
||||||
|
Timeout: time.Second * 5,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config is used to configure the creation of the client.
|
// Config is used to configure the creation of the client.
|
||||||
|
|||||||
Reference in New Issue
Block a user