Skip to content

Commit

Permalink
Use builder methods in getting started docs (#1942)
Browse files Browse the repository at this point in the history
* Fix topic name in getting started documentation

It was "my-topic", when it should have been
persistent://public/default/my-topic.

* Remove topic changes
  • Loading branch information
ivankelly authored and merlimat committed Jun 19, 2018
1 parent a9a37c4 commit 693ea90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/docs/latest/getting-started/LocalCluster.md
Expand Up @@ -84,8 +84,8 @@ Here's an example producer for a Pulsar {% popover topic %} using the [Java](../
```java
String localClusterUrl = "pulsar://localhost:6650";

PulsarClient client = PulsarClient.create(localClusterUrl);
Producer producer = client.createProducer("my-topic");
PulsarClient client = PulsarClient.builder().serviceURL(localClusterUrl).build();
Producer<byte[]> producer = client.newProducer().topic("my-topic").create();
```

Here's an example [Python](../../clients/Python) producer:
Expand Down

0 comments on commit 693ea90

Please sign in to comment.