merlimat commented on a change in pull request #3764: Fixed Reader.HasNext() in 
Go client
URL: https://github.com/apache/pulsar/pull/3764#discussion_r263083466
 
 

 ##########
 File path: pulsar-client-cpp/lib/ConsumerImpl.cc
 ##########
 @@ -1039,8 +1040,7 @@ void 
ConsumerImpl::hasMessageAvailableAsync(HasMessageAvailableCallback callback
         return;
     }
 
-    BrokerGetLastMessageIdCallback callback1 = [this, lastDequed, 
callback](Result result,
-                                                                            
MessageId messageId) {
+    getLastMessageIdAsync([this, lastDequed, callback](Result result, 
MessageId messageId) {
         if (result == ResultOk) {
 
 Review comment:
   I don't think that this would improve readability

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to