[GODRIVER-342] The topology.Server.SelectedDescription method should take a description.TopologyKind Created: 04/Apr/18 Updated: 24/Jul/20 Resolved: 24/Jul/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Core API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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. |