Skip to content

Commit e06eec7

Browse files
committed
rebase to master
1 parent a06dfc3 commit e06eec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulsar/producer_partition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,14 +1743,14 @@ func (i *pendingItem) done(err error) {
17431743
return
17441744
}
17451745
i.isDone = true
1746-
buffersPool.Put(i.buffer)
17471746
if i.flushCallback != nil {
17481747
i.flushCallback(err)
17491748
}
17501749

17511750
if i.cancel != nil {
17521751
i.cancel()
17531752
}
1753+
buffersPool.Put(i.buffer)
17541754
}
17551755

17561756
// _setConn sets the internal connection field of this partition producer atomically.

0 commit comments

Comments
 (0)