liangyepianzhou commented on code in PR #16931:
URL: https://github.com/apache/pulsar/pull/16931#discussion_r976031447


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ReadOnlyManagedLedgerImpl.java:
##########
@@ -47,6 +47,12 @@ public ReadOnlyManagedLedgerImpl(ManagedLedgerFactoryImpl 
factory, BookKeeper bo
 
     CompletableFuture<ReadOnlyCursor> initializeAndCreateCursor(PositionImpl 
startPosition) {
         CompletableFuture<ReadOnlyCursor> future = new CompletableFuture<>();
+        initialize().thenRun(() -> 
future.complete(createReadOnlyCursor(startPosition)));

Review Comment:
   delete this method



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