diff --git a/progress.go b/progress.go index f3d20c7..45d12c4 100644 --- a/progress.go +++ b/progress.go @@ -312,7 +312,7 @@ } } -func (s pState) autoRefreshListener(done chan struct{}) { +func (s *pState) autoRefreshListener(done chan struct{}) { ticker := time.NewTicker(s.refreshRate) defer ticker.Stop() for { @@ -326,7 +326,7 @@ } } -func (s pState) manualRefreshListener(done chan struct{}) { +func (s *pState) manualRefreshListener(done chan struct{}) { for { select { case x := <-s.manualRC: @@ -436,7 +436,7 @@ return cw.Flush(len(rows) - popCount) } -func (s pState) push(wg *sync.WaitGroup, b *Bar, sync bool) { +func (s *pState) push(wg *sync.WaitGroup, b *Bar, sync bool) { s.hm.push(b, sync) wg.Done() }