(zs *zsync.Syncer)
| 351 | } |
| 352 | |
| 353 | func NewProgressReporter(zs *zsync.Syncer) (p *progressReporter) { |
| 354 | p = &progressReporter{ |
| 355 | zs: zs, |
| 356 | ticker: time.NewTicker(time.Second), |
| 357 | stopTicker: make(chan struct{}), |
| 358 | } |
| 359 | go p.ShowProgressLoop() |
| 360 | return |
| 361 | } |
| 362 | |
| 363 | func (p *progressReporter) Close() { |
| 364 | p.ticker.Stop() |
no test coverage detected