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
+5
-0
progress.go
less
more
365
365
}
366
366
367
367
switch l := len(s.pool); l {
368
case 0:
369
if s.heapUpdated {
370
s.updateSyncMatrix()
371
s.heapUpdated = false
372
}
368
373
case 1:
369
374
heap.Push(&s.bHeap, s.pool[0])
370
375
default: