Skip to content

Commit

Permalink
merging substream after flatMapMerge
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Mar 11, 2022
1 parent f45549b commit 9ca056d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -112,8 +112,8 @@ public Flow<SubSource<AbstractWriteModel, NotUsed>, WriteResultAndErrors, NotUse
return Flow.<SubSource<AbstractWriteModel, NotUsed>>create()
.flatMapConcat(source -> source.grouped(maxBulkSize)
.flatMapConcat(searchUpdateMapper::processWriteModels)
.mergeSubstreams()
.flatMapMerge(parallelism, writeModels -> executeBulkWrite(shouldAcknowledge, writeModels))
.mergeSubstreams()
.async(MongoSearchUpdaterFlow.DISPATCHER_NAME, parallelism)
);
}
Expand Down

0 comments on commit 9ca056d

Please sign in to comment.