horizonzy commented on a change in pull request #11316:
URL: https://github.com/apache/pulsar/pull/11316#discussion_r670071654



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
##########
@@ -2580,8 +2582,19 @@ private boolean isSystemTopic(String topic) {
         }
     }
 
+    public CompletableFuture<Void> deleteTopicPolicies(TopicName topicName) {
+        if (!pulsar().getConfig().isTopicLevelPoliciesEnabled()) {
+            return new CompletableFuture<>();

Review comment:
       Finally, I maintain the complete fusture way. I think use complete 
fusture is more suitable for this method. Cound you give some advice.




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