Codebase list golang-github-vbauerster-mpb / 399d101
reset heapUpdated in case of empty pool Vladimir Bauer 3 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
365365 }
366366
367367 switch l := len(s.pool); l {
368 case 0:
369 if s.heapUpdated {
370 s.updateSyncMatrix()
371 s.heapUpdated = false
372 }
368373 case 1:
369374 heap.Push(&s.bHeap, s.pool[0])
370375 default: