Codebase list golang-github-vbauerster-mpb / 55d93a0
reference method receiver for pState calling site of those methods already own a reference (pointer) so matching method receiver is consistent at least. Vladimir Bauer 2 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
311311 }
312312 }
313313
314 func (s pState) autoRefreshListener(done chan struct{}) {
314 func (s *pState) autoRefreshListener(done chan struct{}) {
315315 ticker := time.NewTicker(s.refreshRate)
316316 defer ticker.Stop()
317317 for {
325325 }
326326 }
327327
328 func (s pState) manualRefreshListener(done chan struct{}) {
328 func (s *pState) manualRefreshListener(done chan struct{}) {
329329 for {
330330 select {
331331 case x := <-s.manualRC:
435435 return cw.Flush(len(rows) - popCount)
436436 }
437437
438 func (s pState) push(wg *sync.WaitGroup, b *Bar, sync bool) {
438 func (s *pState) push(wg *sync.WaitGroup, b *Bar, sync bool) {
439439 s.hm.push(b, sync)
440440 wg.Done()
441441 }