Merge pull request #3033 from zyh-future/zyh_asuncproducer_doc_fix

Looking at the Chinese document, I found that the subtraction operati…
This commit is contained in:
Heng Du
2021-08-04 09:18:06 +08:00
committed by GitHub
+4 -2
View File
@@ -120,13 +120,15 @@ public class AsyncProducer {
producer.send(msg, new SendCallback() {
@Override
public void onSuccess(SendResult sendResult) {
countDownLatch.countDown();
System.out.printf("%-10d OK %s %n", index,
sendResult.getMsgId());
}
@Override
public void onException(Throwable e) {
System.out.printf("%-10d Exception %s %n", index, e);
e.printStackTrace();
countDownLatch.countDown();
System.out.printf("%-10d Exception %s %n", index, e);
e.printStackTrace();
}
});
}