liangyepianzhou commented on code in PR #15675:
URL: https://github.com/apache/pulsar/pull/15675#discussion_r877683478
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java:
##########
@@ -181,6 +181,16 @@ public void initialize() {
}
}
+ public Optional<LookupResult> getBrokerServiceUrl(TopicName topicName,
LookupOptions options) {
+ try {
+ return getBrokerServiceUrlAsync(topicName, options).get();
Review Comment:
Is it up to the caller to do the synchronous operation?
--
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]