Skip to content

Commit

Permalink
Fix documentation for transactions to disable send timeout by default (
Browse files Browse the repository at this point in the history
  • Loading branch information
xuesongxs authored and ciaocloud committed Oct 16, 2021
1 parent 7fa9a8f commit 46033ef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions site2/docs/transaction-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Consumer<String> sourceConsumer = pulsarClient
Producer<String> sinkProducer = pulsarClient
.newProducer(Schema.STRING)
.topic(sinkTopic)
.sendTimeout(0, TimeUnit.MILLISECONDS)
.create();
Transaction txn = pulsarClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Consumer<String> sourceConsumer = pulsarClient
Producer<String> sinkProducer = pulsarClient
.newProducer(Schema.STRING)
.topic(sinkTopic)
.sendTimeout(0, TimeUnit.MILLISECONDS)
.create();
Transaction txn = pulsarClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Consumer<String> sourceConsumer = pulsarClient
Producer<String> sinkProducer = pulsarClient
.newProducer(Schema.STRING)
.topic(sinkTopic)
.sendTimeout(0, TimeUnit.MILLISECONDS)
.create();
Transaction txn = pulsarClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Consumer<String> sourceConsumer = pulsarClient
Producer<String> sinkProducer = pulsarClient
.newProducer(Schema.STRING)
.topic(sinkTopic)
.sendTimeout(0, TimeUnit.MILLISECONDS)
.create();
Transaction txn = pulsarClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Consumer<String> sourceConsumer = pulsarClient
Producer<String> sinkProducer = pulsarClient
.newProducer(Schema.STRING)
.topic(sinkTopic)
.sendTimeout(0, TimeUnit.MILLISECONDS)
.create();
Transaction txn = pulsarClient
Expand Down

0 comments on commit 46033ef

Please sign in to comment.