Skip to content

Commit

Permalink
Removed comment
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Aug 20, 2024
1 parent baa7cf1 commit d036116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RFS/src/main/java/com/rfs/common/DocumentReindexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ Mono<Void> reindexDocsInParallelBatches(Flux<BulkDocSection> docs, String indexN
var maxGroupsToPrefetch = 1;

return bulkDocsBatches
.parallel(maxConcurrentWorkItems, maxConcurrentWorkItems /* ??? how is the related to the second arg on the next line ??? */)
.parallel(maxConcurrentWorkItems, maxConcurrentWorkItems)
.runOn(scheduler, maxGroupsToPrefetch)
.concatMapDelayError(docsGroup -> sendBulkRequest(UUID.randomUUID(), docsGroup, indexName, context))
.doOnTerminate(scheduler::dispose)
.then();
}
}

Mono<Void> sendBulkRequest(UUID batchId, List<BulkDocSection> docsBatch, String indexName, IDocumentReindexContext context) {
return client.sendBulkRequest(indexName, docsBatch, context.createBulkRequest()) // Send the request
Expand Down

0 comments on commit d036116

Please sign in to comment.