Codebase list golang-github-vbauerster-mpb / 2b02dd3
rename frame struct to renderFrame Vladimir Bauer 4 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1919 index int // used by heap
2020 priority int // used by heap
2121 hasEwma bool
22 frameCh chan *frame
22 frameCh chan *renderFrame
2323 operateState chan func(*bState)
2424 done chan struct{}
2525 container *Progress
6060 sync bool
6161 }
6262
63 type frame struct {
63 type renderFrame struct {
6464 reader io.Reader
6565 lines int
6666 shutdown bool
7272 bar := &Bar{
7373 priority: bs.priority,
7474 hasEwma: len(bs.ewmaDecorators) != 0,
75 frameCh: make(chan *frame, 1),
75 frameCh: make(chan *renderFrame, 1),
7676 operateState: make(chan func(*bState)),
7777 done: make(chan struct{}),
7878 container: container,
341341 reader, lines = s.extender(nil, s.reqWidth, stat)
342342 b.recoveredPanic = p
343343 }
344 frame := frame{
344 frame := renderFrame{
345345 reader: reader,
346346 lines: lines + 1,
347347 shutdown: s.completed || s.aborted,
364364 reader = s.draw(stat)
365365 }
366366 reader, lines = s.extender(reader, s.reqWidth, stat)
367 b.frameCh <- &frame{
367 b.frameCh <- &renderFrame{
368368 reader: reader,
369369 lines: lines + 1,
370370 }