BewareMyPower commented on code in PR #18392:
URL: https://github.com/apache/pulsar/pull/18392#discussion_r1021040492
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PersistentAcknowledgmentsGroupingTracker.java:
##########
@@ -66,8 +67,8 @@ public class PersistentAcknowledgmentsGroupingTracker
implements Acknowledgments
private final long acknowledgementGroupTimeMicros;
- private volatile TimedCompletableFuture<Void> currentIndividualAckFuture;
- private volatile TimedCompletableFuture<Void> currentCumulativeAckFuture;
+ private volatile CompletableFuture<Void> currentIndividualAckFuture;
+ private volatile CompletableFuture<Void> currentCumulativeAckFuture;
Review Comment:
I made another change to avoid the type cast. Since `TimedCompletableFuture`
is only created and used in the private `newMessageAckCommandAndWrite`, we can
change the argument from `TimedCompletableFuture` to `CompletableFuture`.
/cc @Demogorgon314 @eolivelli for this change.
--
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]