This is an automated email from the ASF dual-hosted git repository. baodi pushed a commit to branch c_patch_batch_receive in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git
commit d0716afe5b86a149b26836079c5fc8751d95923f Author: Baodi Shi <[email protected]> AuthorDate: Wed Apr 19 17:03:32 2023 +0800 Change notes. --- include/pulsar/c/consumer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/pulsar/c/consumer.h b/include/pulsar/c/consumer.h index 6971244..28b8c5a 100644 --- a/include/pulsar/c/consumer.h +++ b/include/pulsar/c/consumer.h @@ -35,7 +35,7 @@ typedef void (*pulsar_result_callback)(pulsar_result, void *); typedef void (*pulsar_receive_callback)(pulsar_result result, pulsar_message_t *msg, void *ctx); -typedef void (*pulsar_batch_receive_callback)(pulsar_result result, pulsar_messages_t *msg, void *ctx); +typedef void (*pulsar_batch_receive_callback)(pulsar_result result, pulsar_messages_t *msgs, void *ctx); /** * @return the topic this consumer is subscribed to @@ -125,9 +125,9 @@ PULSAR_PUBLIC pulsar_result pulsar_consumer_batch_receive(pulsar_consumer_t *con * Async batch receiving messages. * * @param callback - * 1. When the result in the callback is `ResultOk`, `*msg` in the callback will point to the memory that + * 1. When the result in the callback is `ResultOk`, `msgs` in the callback will point to the memory that * is allocated internally. You have to call `pulsar_messages_free` to free it. - * 2. If the result in the callback is not `ResultOk`, `*msg` in the callback will is nullptr. + * 2. If the result in the callback is not `ResultOk`, `msgs` in the callback will is nullptr. */ PULSAR_PUBLIC void pulsar_consumer_batch_receive_async(pulsar_consumer_t *consumer, pulsar_batch_receive_callback callback, void *ctx);
