This is an automated email from the ASF dual-hosted git repository. tison pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push: new e819fc14fb6 [fix][doc] CPP client advertised listeners examples (#538) e819fc14fb6 is described below commit e819fc14fb6c0acd4327da6d557138b1e88a37b9 Author: Baodi Shi <ba...@apache.org> AuthorDate: Mon Apr 24 22:40:12 2023 +0800 [fix][doc] CPP client advertised listeners examples (#538) --- docs/client-libraries-clients.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/client-libraries-clients.md b/docs/client-libraries-clients.md index cb75b6ed58e..c898b13ff42 100644 --- a/docs/client-libraries-clients.md +++ b/docs/client-libraries-clients.md @@ -35,10 +35,9 @@ The following example creates a Python client using multiple advertised listener <TabItem value="C++"> ```cpp - PulsarClient client = PulsarClient.builder() - .serviceUrl("pulsar://xxxx:6650") - .listenerName("external") - .build(); + ClientConfiguration clientConfiguration; + clientConfiguration.setListenerName("external"); + Client client("pulsar://xxxx:6650", clientConfiguration); ``` </TabItem>