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