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

Remove incidentally mutable EventBuffer methods

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Rust Drivers

      Some methods on EventBuffer (get_command_events, get_successful_command_execution) are a combination of search and mutate methods; these make it hard to reason about test behavior and in most cases the mutability isn't actually needed.  We should remove them in favor of immutable methods and have additional explicit mutability for when it's really necessary.

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: