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

Change readpref.Primary() return constant

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Given that the value returned by `readpref.Primary()` is always the same, we should create a constant for it and have that returned rather than doing a new allocation for each call.

      Attachments

        Activity

          People

            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: