Skip to content

Commit

Permalink
The sample code of transaction is missing ".build()"
Browse files Browse the repository at this point in the history
  • Loading branch information
T2938 committed Mar 4, 2024
1 parent 1a49591 commit 6bff37c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/txn-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ To use Pulsar transaction API, complete the following steps.
// Step 3: create a Pulsar client and enable transactions.
.enableTransaction(true)
.serviceUrl(jct.serviceUrl)
.build()
// Step 4: create three producers to produce messages to input and output topics.
ProducerBuilder<String> producerBuilder = client.newProducer(Schema.STRING);
Expand Down

0 comments on commit 6bff37c

Please sign in to comment.