Skip to content

Commit

Permalink
fix: producer RetryQueue memory leak (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleray authored Aug 12, 2024
1 parent 9a152f5 commit 0bbc541
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions producer/retry_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (retryQueue *RetryQueue) Pop() interface{} {
old := retryQueue.batch
n := len(old)
item := old[n-1]
old[n-1] = nil
retryQueue.batch = old[0 : n-1]
return item
}

0 comments on commit 0bbc541

Please sign in to comment.