chia7712 commented on code in PR #13404:
URL: https://github.com/apache/kafka/pull/13404#discussion_r1138878548


##########
tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java:
##########
@@ -113,7 +113,7 @@ void start(String[] args) throws IOException {
                 record = new ProducerRecord<>(topicName, payload);
 
                 long sendStartMs = System.currentTimeMillis();
-                Callback cb = stats.nextCompletion(sendStartMs, 
payload.length, stats);
+                cb = stats.nextCompletion(sendStartMs, payload.length);

Review Comment:
   `nextCompletion` does not increase `iteration` now, so we can remove the 
method and then just create callback here.



-- 
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-unsubscr...@kafka.apache.org

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

Reply via email to