shibd commented on PR #170:
URL: 
https://github.com/apache/pulsar-client-cpp/pull/170#issuecomment-1381406248

   > We only need to support passing a std::function<std::string()>. The 
initialize and close methods are redundant.
   
    The initialize and close methods are useful. We need pass `Client&` to 
`ServiceUrlProvider` by `initialize` method.
   
   
https://github.com/apache/pulsar-client-cpp/blob/7d91638513405ed3e9bc5e7cd782d30e8703679d/lib/Client.cc#L43
   
   This way, if the user implements the `ServiceUrlProvider`. When it listens 
for a change in the service URL (such as through zk or other storage), it can 
invoke the `client.updateServiceUrl` method to update the URL.
   
   


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to