mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +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.SetSocketTimeout(1 * time.Minute) | ||||||
| 	clientOptions.SetConnectTimeout(1 * time.Minute) | 	clientOptions.SetConnectTimeout(1 * time.Minute) | ||||||
|  |  | ||||||
| 	opts := clientOptions.ApplyURI(connURL) | 	client, err = mongo.Connect(ctx, options.MergeClientOptions(options.Client().ApplyURI(connURL), clientOptions)) | ||||||
| 	client, err = mongo.Connect(ctx, opts) |  | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return nil, err | 		return nil, err | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 cyrus-mc
					cyrus-mc