BewareMyPower commented on code in PR #1394:
URL: https://github.com/apache/pulsar-client-go/pull/1394#discussion_r2215202914


##########
pulsar/producer_partition.go:
##########
@@ -1744,7 +1737,9 @@ func (i *pendingItem) done(err error) {
 
        i.isDone = true
        // return the buffer to the pool after all callbacks have been called.
-       defer buffersPool.Put(i.buffer)
+       if i.buffer != nil {

Review Comment:
   When is `i.buffer` nil?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to