Demogorgon314 commented on code in PR #18392:
URL: https://github.com/apache/pulsar/pull/18392#discussion_r1018853908


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PersistentAcknowledgmentsGroupingTracker.java:
##########
@@ -57,6 +58,12 @@
 @Slf4j
 public class PersistentAcknowledgmentsGroupingTracker implements 
AcknowledgmentsGroupingTracker {
 
+    private static final TimedCompletableFuture<Void> COMPLETED_FUTURE = new 
TimedCompletableFuture<>();
+
+    static {
+        COMPLETED_FUTURE.complete(null);

Review Comment:
   Adding a `public static <U> TimedCompletableFuture<U> completedFuture(U 
value)` method in `TimedCompletableFuture` class might be better?



-- 
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]

Reply via email to