Skip to content

Commit d43a880

Browse files
committed
Use thenAccept instead of thenApply
1 parent 66560f3 commit d43a880

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fdb-record-layer-lucene/src/main/java/com/apple/foundationdb/record/lucene/LuceneIndexScrubbingToolsMissing.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,12 @@ private CompletableFuture<Void> checkMissingIndexKey(FDBIndexableRecord<Message>
173173
}
174174
return AsyncUtil.DONE;
175175
}
176-
return partitioner.tryGetPartitionInfo(rec, groupingKey).thenApply(partitionInfo -> {
176+
return partitioner.tryGetPartitionInfo(rec, groupingKey).thenAccept(partitionInfo -> {
177177
if (partitionInfo == null) {
178178
issue.compareAndSet(null, Pair.of(MissingIndexReason.NOT_IN_PARTITION, groupingKey));
179179
} else if (isMissingIndexKey(rec, partitionInfo.getId(), groupingKey)) {
180180
issue.compareAndSet(null, Pair.of(MissingIndexReason.NOT_IN_PK_SEGMENT_INDEX, groupingKey));
181181
}
182-
return null;
183182
});
184183
}
185184

0 commit comments

Comments
 (0)