Skip to content

Commit 3373c14

Browse files
committed
Change comments.
1 parent 817a5c5 commit 3373c14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

driver-core/src/main/com/mongodb/internal/connection/OperationContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)