You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/06/02 07:24:32 UTC
[GitHub] [james-project] Arsnael commented on a change in pull request #471: [PERFORMANCE] Migrate where possible from Mono.fatMap to flatMapIterable
Arsnael commented on a change in pull request #471:
URL: https://github.com/apache/james-project/pull/471#discussion_r643719678
##########
File path: backends-common/cassandra/src/main/java/org/apache/james/backends/cassandra/utils/CassandraAsyncExecutor.java
##########
@@ -67,7 +68,7 @@ public CassandraAsyncExecutor(Session session) {
public Flux<Row> executeRows(Statement statement) {
return execute(statement)
- .flatMapMany(Flux::fromIterable);
+ .flatMapIterable(Function.identity());
Review comment:
Can you explain what `Function.identity()` is for exactly?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org