showuon edited a comment on pull request #9029: URL: https://github.com/apache/kafka/pull/9029#issuecomment-663329158
@mimaison , thanks for your comments. I've updated in this commit: https://github.com/apache/kafka/pull/9029/commits/5345c6835ef42da973b794634d9b8d65f27ee80a. What I did are: 1. remove unused `time` variable and import 2. Use simple `for` loop instead of lambda loop 3. We'll wait for the consumer consume all 100 records before continuing For other improvements, @ning2008wisc will address in KAFKA-10304. Thanks. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org