sweisdb commented on code in PR #45425: URL: https://github.com/apache/spark/pull/45425#discussion_r1552041848
########## common/network-common/src/main/java/org/apache/spark/network/crypto/AuthEngine.java: ########## @@ -224,7 +236,7 @@ private TransportCipher generateTransportCipher( private byte[] getTranscript(AuthMessage... encryptedPublicKeys) { ByteBuf transcript = Unpooled.buffer( - Arrays.stream(encryptedPublicKeys).mapToInt(k -> k.encodedLength()).sum()); + Arrays.stream(encryptedPublicKeys).mapToInt(AuthMessage::encodedLength).sum()); Review Comment: Reverted. Good call. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org