mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-17 20:17:00 +02:00
Use Consul API client's DefaultNonPooledTransport.
What we should probably do is create a client with a mutex and invalidate it when parameters change rather than creating a client over and over...that can be a TODO for later but for now this fix suffices. Fixes #1428
This commit is contained in:
parent
2adbe112be
commit
5330aa734b
@ -23,7 +23,7 @@ func client(s logical.Storage) (*api.Client, error) {
|
||||
return nil, fmt.Errorf("error reading root configuration: %s", err)
|
||||
}
|
||||
|
||||
consulConf := api.DefaultConfig()
|
||||
consulConf := api.DefaultNonPooledConfig()
|
||||
consulConf.Address = conf.Address
|
||||
consulConf.Scheme = conf.Scheme
|
||||
consulConf.Token = conf.Token
|
||||
|
Loading…
Reference in New Issue
Block a user