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
| 311 | 311 | } |
| 312 | 312 | } |
| 313 | 313 | |
| 314 | func (s pState) autoRefreshListener(done chan struct{}) { | |
| 314 | func (s *pState) autoRefreshListener(done chan struct{}) { | |
| 315 | 315 | ticker := time.NewTicker(s.refreshRate) |
| 316 | 316 | defer ticker.Stop() |
| 317 | 317 | for { |
| 325 | 325 | } |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | func (s pState) manualRefreshListener(done chan struct{}) { | |
| 328 | func (s *pState) manualRefreshListener(done chan struct{}) { | |
| 329 | 329 | for { |
| 330 | 330 | select { |
| 331 | 331 | case x := <-s.manualRC: |
| 435 | 435 | return cw.Flush(len(rows) - popCount) |
| 436 | 436 | } |
| 437 | 437 | |
| 438 | func (s pState) push(wg *sync.WaitGroup, b *Bar, sync bool) { | |
| 438 | func (s *pState) push(wg *sync.WaitGroup, b *Bar, sync bool) { | |
| 439 | 439 | s.hm.push(b, sync) |
| 440 | 440 | wg.Done() |
| 441 | 441 | } |