BewareMyPower commented on code in PR #169:
URL: https://github.com/apache/pulsar-client-cpp/pull/169#discussion_r1065690028


##########
lib/ProducerImpl.cc:
##########
@@ -975,5 +984,33 @@ void ProducerImpl::asyncWaitSendTimeout(DurationType 
expiryTime) {
 
 ProducerImplWeakPtr ProducerImpl::weak_from_this() noexcept { return 
shared_from_this(); }
 
+Message ProducerImpl::beforeSend(const Producer& producer, const Message& 
message) const {
+    if (interceptors_.size() == 0) {

Review Comment:
   ```suggestion
       if (interceptors_.empty()) {
   ```



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to