Codebase list golang-github-vbauerster-mpb / bb32f37
drop frame var Vladimir Bauer 7 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
262262 var lineCount int
263263 for s.bHeap.Len() > 0 {
264264 bar := heap.Pop(s.bHeap).(*Bar)
265 frame := <-bar.frameCh
266265 defer func() {
267266 if bar.toShutdown {
268267 // shutdown at next flush, in other words decrement underlying WaitGroup
281280 }
282281 heap.Push(s.bHeap, bar)
283282 }()
284 cw.ReadFrom(frame)
283 cw.ReadFrom(<-bar.frameCh)
285284 lineCount += bar.extendedLines + 1
286285 }
287286