mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
Merge writeOpts and tlsAuthOpts after call to ApplyURI (#9519)
This commit is contained in:
parent
4b81ede3e3
commit
9546f18ebc
1 changed files with 1 additions and 2 deletions
|
|
@ -132,8 +132,7 @@ func createClient(ctx context.Context, connURL string, clientOptions *options.Cl
|
|||
clientOptions.SetSocketTimeout(1 * time.Minute)
|
||||
clientOptions.SetConnectTimeout(1 * time.Minute)
|
||||
|
||||
opts := clientOptions.ApplyURI(connURL)
|
||||
client, err = mongo.Connect(ctx, opts)
|
||||
client, err = mongo.Connect(ctx, options.MergeClientOptions(options.Client().ApplyURI(connURL), clientOptions))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue