gaoran10 commented on a change in pull request #11928:
URL: https://github.com/apache/pulsar/pull/11928#discussion_r702553788
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
##########
@@ -133,6 +126,21 @@ public SystemTopicBasedTopicPoliciesService(PulsarService
pulsarService) {
return result;
}
+ private PulsarEvent getPulsarEvent(TopicName topicName, ActionType
actionType, TopicPolicies policies) {
+ return PulsarEvent.builder()
+ .actionType(actionType)
+ .eventType(EventType.TOPIC_POLICY)
+ .topicPoliciesEvent(
+ TopicPoliciesEvent.builder()
+ .domain(topicName.getDomain().toString())
+ .tenant(topicName.getTenant())
+ .namespace(topicName.getNamespaceObject().getLocalName())
+
.topic(TopicName.get(topicName.getPartitionedTopicName()).getLocalName())
+ .policies(policies)
+ .build())
+ .build();
Review comment:
Does this code block need to be format?
--
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]