Skip to content

Commit 103025f

Browse files
committed
fixup Sender._fail_batch
1 parent 28cbad6 commit 103025f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka/producer/sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _handle_produce_response(self, node_id, send_time, batches, response):
271271
for batch in batches:
272272
self._complete_batch(batch, None, -1)
273273

274-
def _fail_batch(batch, *args, **kwargs):
274+
def _fail_batch(self, batch, *args, **kwargs):
275275
if self._transaction_state and self._transaction_state.producer_id_and_epoch.producer_id == batch.producer_id:
276276
# Reset the transaction state since we have hit an irrecoverable exception and cannot make any guarantees
277277
# about the previously committed message. Note that this will discard the producer id and sequence

0 commit comments

Comments
 (0)