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

The topology.Server.SelectedDescription method should take a description.TopologyKind

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Core API
    • None

    Description

      To avoid confusion the SelectedDescription method of topology.Server should take a description.TopologyKind to ensure that users don't get confused or experience strange behavior, e.g. thinking that since the Server is a member of a Topology that the Kind property of the returned description.SelectedServer will be whatever the description.TopologyKind is of the Topology.

      Additionally, remove this as a method for a topology.Server and instead make it a function that takes a topology.Server and a description.TopologyKind.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: