ReadPreference.fromOptions doesn't pull "maxStalenessSeconds" from options

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.10
    • Affects Version/s: 3.6.0, 3.5.10, 4.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I'm looking at ReadPreference in master & 3.6

      https://github.com/mongodb/node-mongodb-native/blob/master/src/read_preference.ts#L93-L113

      I noticed two things wrong here:

      1. maxStalenessSeconds isn't pulled from options

      2. hedge isn't supposed to be in options

            Assignee:
            Thomas Reggi (Inactive)
            Reporter:
            Thomas Reggi (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: