Jason918 commented on a change in pull request #12930:
URL: https://github.com/apache/pulsar/pull/12930#discussion_r754848783



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java
##########
@@ -1434,7 +1434,7 @@ protected void internalDeleteSubscription(AsyncResponse 
asyncResponse, String su
             internalDeleteSubscriptionForNonPartitionedTopic(asyncResponse, 
subName, authoritative);
         } else {
             getPartitionedTopicMetadataAsync(topicName,
-                    authoritative, false).thenAccept(partitionMetadata -> {
+                    authoritative, false).thenAcceptAsync(partitionMetadata -> 
{

Review comment:
       I think it's better to make 
`internalDeleteSubscriptionForNonPartitionedTopic` return CompletableFuture?




-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to