chibenwa commented on code in PR #1824:
URL: https://github.com/apache/james-project/pull/1824#discussion_r1434265178
##########
server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/HAProxyMessageHandler.java:
##########
@@ -60,6 +69,7 @@ public void channelRead(ChannelHandlerContext ctx, Object
msg) throws Exception
// Refresh MDC info to account for proxying
MDCBuilder boundMDC = IMAPMDCContext.boundMDC(ctx);
+ connectionChecks.forEach(connectionCheck ->
Mono.from(connectionCheck.validate((InetSocketAddress)
ctx.channel().remoteAddress())).block());
Review Comment:
Flux.fromIterable(...).concatMap(...)>then().block();
Please use reactor control structures.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]