The mongo.newClient function has been through many options design iterations and has some cruft left over from previous designs. Specifically, it handles overriding the ReadPreference and other types when they are nil, including reading them from the connection string. We should likely just be checking to see if they are nil and then adding the defaults, not read them from the connstring, which is handled by options.MergeClientOptions.
- Assignee:
- Kristofer Brandow (Inactive)
- Reporter:
- Kristofer Brandow (Inactive)
- Votes:
-
0 Vote for this issue
- Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: