(last bool)
| 60 | } |
| 61 | |
| 62 | func (p *Reader) updateProgress(last bool) { |
| 63 | if last || p.current == p.size || p.rateLimiter.Allow() { |
| 64 | p.out.WriteProgress(Progress{ID: p.id, Action: p.action, Current: p.current, Total: p.size, LastUpdate: last}) |
| 65 | } |
| 66 | } |
no test coverage detected