@@ -807,14 +807,6 @@ func (p *Producer) SetOAuthBearerTokenFailure(errstr string) error {
807
807
// will acquire the internal producer id and epoch, used in all future
808
808
// transactional messages issued by this producer instance.
809
809
//
810
- // Upon successful return from this function the application has to perform at
811
- // least one of the following operations within `transaction.timeout.ms` to
812
- // avoid timing out the transaction on the broker:
813
- // - `Produce()` (et.al)
814
- // - `SendOffsetsToTransaction()`
815
- // - `CommitTransaction()`
816
- // - `AbortTransaction()`
817
- //
818
810
// Parameters:
819
811
// - `ctx` - The maximum time to block, or nil for indefinite.
820
812
// On timeout the operation may continue in the background,
@@ -846,6 +838,14 @@ func (p *Producer) InitTransactions(ctx context.Context) error {
846
838
// `InitTransactions()` must have been called successfully (once)
847
839
// before this function is called.
848
840
//
841
+ // Upon successful return from this function the application has to perform at
842
+ // least one of the following operations within `transaction.timeout.ms` to
843
+ // avoid timing out the transaction on the broker:
844
+ // - `Produce()` (et.al)
845
+ // - `SendOffsetsToTransaction()`
846
+ // - `CommitTransaction()`
847
+ // - `AbortTransaction()`
848
+ //
849
849
// Any messages produced, offsets sent (`SendOffsetsToTransaction()`),
850
850
// etc, after the successful return of this function will be part of
851
851
// the transaction and committed or aborted atomatically.
0 commit comments