shibd commented on PR #170: URL: https://github.com/apache/pulsar-client-cpp/pull/170#issuecomment-1381605478
> We only need to support passing a std::function<std::string()>. The initialize and close methods are redundant. Yes, you are right. The initialize and close methods are redundant. In fact, The client already provides the `updateServiceUrl` method, which the user can use to implement dynamic update service URL. As for how the user implements it and how to close his resources, this is left to the user. I changed to pass a `std::function<const std::string&()>` when creating a `Client`. -- 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]
