Arsnael commented on code in PR #2839:
URL: https://github.com/apache/james-project/pull/2839#discussion_r2458475642


##########
server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPCommandsThrottler.java:
##########
@@ -111,7 +111,7 @@ public void channelRead(ChannelHandlerContext ctx, Object 
msg) {
     }
 
     private static void throttle(ChannelHandlerContext ctx, Object msg, 
ImapRequest imapRequest, ThrottlerConfigurationEntry configurationEntry) {
-        ImapSession session = (ImapSession) 
ctx.channel().attr(IMAP_SESSION_ATTRIBUTE_KEY);
+        ImapSession session = (ImapSession) 
ctx.channel().attr(IMAP_SESSION_ATTRIBUTE_KEY).get();

Review Comment:
   I believe we should fix that in the master branch too? :)



-- 
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]

Reply via email to