Skip to content

Commit

Permalink
[improve][admin]Remove repeating validateTopicOwnershipAsync action (a…
Browse files Browse the repository at this point in the history
…pache#18996)

Co-authored-by: gavingaozhangmin <[email protected]>
  • Loading branch information
gaozhangmin and gavingaozhangmin authored Dec 21, 2022
1 parent 5ea6790 commit 3b09016
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ protected CompletableFuture<Void> internalDeleteSubscriptionAsync(String subName
future = CompletableFuture.completedFuture(null);
}

return future.thenCompose(__ -> validateTopicOwnershipAsync(topicName, authoritative)).thenCompose(__ -> {
return future.thenCompose(__ -> {
if (topicName.isPartitioned()) {
return internalDeleteSubscriptionForNonPartitionedTopicAsync(subName, authoritative, force);
} else {
Expand Down

0 comments on commit 3b09016

Please sign in to comment.