You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/04/24 01:11:10 UTC

[GitHub] [kafka] RivenSun2 commented on a diff in pull request #12070: KAFKA-13838: Improve the poll method of ConsumerNetworkClient

RivenSun2 commented on code in PR #12070:
URL: https://github.com/apache/kafka/pull/12070#discussion_r857050748


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkClient.java:
##########
@@ -490,17 +491,11 @@ long trySend(long now) {
         // send any requests that can be sent now
         for (Node node : unsent.nodes()) {
             Iterator<ClientRequest> iterator = unsent.requestIterator(node);
-            if (iterator.hasNext())
+            if (iterator.hasNext()) {

Review Comment:
   sure



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org