Skip to content

Commit 88bb7ac

Browse files
committed
function kafka_produce_batch calls incorrect lib function rd_kafka_produce. It should call rd_kafka_produce_batch. Tested successfully.
1 parent acc6721 commit 88bb7ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ int kafka_produce_batch(rd_kafka_t *r, char *topic, char **msg, int *msg_len, in
502502
messages[i].payload = msg[i];
503503
messages[i].len = msg_len[i];
504504
}
505-
i = rd_kafka_produce(rkt, partition, RD_KAFKA_MSG_F_COPY, messages, msg_cnt, NULL, 0, opaque);
505+
i = rd_kafka_produce_batch(rkt, partition, RD_KAFKA_MSG_F_COPY, messages, msg_cnt);
506506
if (i < msg_cnt)
507507
{
508508
if (log_level)

0 commit comments

Comments
 (0)