Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1270

Make SDAM updates infallible

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      The current SDAM update implementation returns a Result, but this is only due to an implementation quirk rather than the method actually possibly failing (the fields of ServerDescription are accessed through a Result, though the parts where this is done in update are guaranteed to not fail). We should update this method to be infallible to avoid confusion and eliminate the need to ignore its return value.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: