Skip to content

Commit

Permalink
fix: add sentAt when put item into pendingQueue (#509)
Browse files Browse the repository at this point in the history
Signed-off-by: jonyhy96 <hy352144278@gmail.com>

Signed-off-by: jonyhy96 hy352144278@gmail.com

Fixes #508
  • Loading branch information
jonyhy96 authored Apr 15, 2021
1 parent f17deac commit b4ec53c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pulsar/producer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ func (p *partitionProducer) internalFlushCurrentBatches() {
continue
}
p.pendingQueue.Put(&pendingItem{
sentAt: time.Now(),
batchData: batchesData[i],
sequenceID: sequenceIDs[i],
sendRequests: callbacks[i],
Expand Down

0 comments on commit b4ec53c

Please sign in to comment.