lifepuzzlefun commented on code in PR #18073:
URL: https://github.com/apache/pulsar/pull/18073#discussion_r1044858261
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java:
##########
@@ -159,7 +159,7 @@
// The goal is to optimize batch density while also ensuring that a
producer never waits longer than the configured
// batchingMaxPublishDelayMicros to send a batch.
// Only update from within synchronized block on this producer.
- private ScheduledFuture<?> batchFlushTask;
+ private Timeout batchFlushTask;
Review Comment:
@tisonkun thanks for review, this change not change the logic for when
trigger the schecule task. just change the scheduler to hashwheeltimer for
better performance. maybe the comment can remain the same.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]