mirror of
https://github.com/HDT3213/delayqueue.git
synced 2025-10-05 07:06:53 +08:00
let consume buffer naturally depletion
This commit is contained in:
@@ -674,7 +674,6 @@ func (q *DelayQueue) StopConsume() {
|
|||||||
if q.ticker != nil {
|
if q.ticker != nil {
|
||||||
q.ticker.Stop()
|
q.ticker.Stop()
|
||||||
}
|
}
|
||||||
close(q.consumeBuffer)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPendingCount returns the number of pending messages
|
// GetPendingCount returns the number of pending messages
|
||||||
|
Reference in New Issue
Block a user