Skip to content

Commit

Permalink
Merge writeOpts and tlsAuthOpts after call to ApplyURI (#9519)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-mc authored Jul 22, 2020
1 parent 4b81ede commit 9546f18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/database/mongodb/connection_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9546f18

Please sign in to comment.