minor: declare same type on one line
Vladimir Bauer
3 years ago
| 34 | 34 |
|
| 35 | 35 |
func (m heapManager) run() {
|
| 36 | 36 |
var bHeap priorityQueue
|
| 37 | |
var pMatrix map[int][]chan int
|
| 38 | |
var aMatrix map[int][]chan int
|
|
37 |
var pMatrix, aMatrix map[int][]chan int
|
| 39 | 38 |
|
| 40 | 39 |
var l int
|
| 41 | 40 |
var sync bool
|
| 22 | 22 |
|
| 23 | 23 |
// Progress represents a container that renders one or more progress bars.
|
| 24 | 24 |
type Progress struct {
|
| 25 | |
uwg *sync.WaitGroup
|
| 26 | |
bwg *sync.WaitGroup
|
| 27 | |
operateState chan func(*pState)
|
| 28 | |
interceptIO chan func(io.Writer)
|
| 29 | |
done chan struct{}
|
| 30 | |
shutdown chan struct{}
|
| 31 | |
cancel func()
|
|
25 |
uwg *sync.WaitGroup
|
|
26 |
bwg *sync.WaitGroup
|
|
27 |
operateState chan func(*pState)
|
|
28 |
interceptIO chan func(io.Writer)
|
|
29 |
done, shutdown chan struct{}
|
|
30 |
cancel func()
|
| 32 | 31 |
}
|
| 33 | 32 |
|
| 34 | 33 |
// pState holds bars in its priorityQueue, it gets passed to (*Progress).serve monitor goroutine.
|