mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Merge writeOpts and tlsAuthOpts after call to ApplyURI (#9519)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user