File tree Expand file tree Collapse file tree
driver-core/src/main/com/mongodb/internal/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,18 +264,18 @@ private DeprioritizingSelector(final ServerSelector wrappedSelector) {
264264 public List <ServerDescription > select (final ClusterDescription clusterDescription ) {
265265 List <ServerDescription > serverDescriptions = clusterDescription .getServerDescriptions ();
266266
267- // TODO-JAVA-5908: Evaluate whether the early-return optimization a meaningful performance impact on server selection.
267+ // TODO-JAVA-5908: Evaluate whether using the early-return optimization has a meaningful performance impact on server selection.
268268 if (serverDescriptions .size () == 1 || deprioritized .isEmpty ()) {
269269 return wrappedSelector .select (clusterDescription );
270270 }
271271
272- // TODO-JAVA-5908: Evaluate whether using a loop instead of Stream a meaningful performance impact on server selection.
272+ // TODO-JAVA-5908: Evaluate whether using a loop instead of Stream has a meaningful performance impact on server selection.
273273 List <ServerDescription > nonDeprioritizedServerDescriptions = serverDescriptions
274274 .stream ()
275275 .filter (serverDescription -> !deprioritized .contains (serverDescription .getAddress ()))
276276 .collect (toList ());
277277
278- // TODO-JAVA-5908: Evaluate whether the early-return optimization a meaningful performance impact on server selection.
278+ // TODO-JAVA-5908: Evaluate whether the early-return optimization has a meaningful performance impact on server selection.
279279 if (nonDeprioritizedServerDescriptions .isEmpty ()) {
280280 return wrappedSelector .select (clusterDescription );
281281 }
You can’t perform that action at this time.
0 commit comments