Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-727

Clean up mongo.newClient

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.0.0-rc1
    • Affects Version/s: None
    • Component/s: CRUD
    • None

      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:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: