You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ba...@apache.org on 2023/04/19 09:03:52 UTC

[pulsar-client-cpp] branch c_patch_batch_receive created (now d0716af)

This is an automated email from the ASF dual-hosted git repository.

baodi pushed a change to branch c_patch_batch_receive
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git


      at d0716af  Change notes.

This branch includes the following new commits:

     new d0716af  Change notes.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[pulsar-client-cpp] 01/01: Change notes.

Posted by ba...@apache.org.
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 <ba...@apache.org>
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);