Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
emasab committed Apr 4, 2023
1 parent 9083277 commit aed7c0f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/confluent_kafka/src/confluent_kafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,17 @@ static PyMemberDef TopicPartition_members[] = {
};

static PyGetSetDef TopicPartition_getters_and_setters[] = {
{ "leader_epoch",
{
/* name */
"leader_epoch",
(getter) TopicPartition_get_leader_epoch,
NULL,
":attribute leader_epoch: Offset leader epoch (int), or None"},
/* doc */
":attribute leader_epoch: Offset leader epoch (int), or None",
/* closure */
NULL
},
{ NULL }
};


Expand Down

0 comments on commit aed7c0f

Please sign in to comment.