()
| 124 | } |
| 125 | |
| 126 | func (p *cliProgress) maybeOutput() { |
| 127 | if !p.uploading.Load() { |
| 128 | return |
| 129 | } |
| 130 | |
| 131 | if p.outputThrottle.ShouldOutput(p.progressUpdateInterval) { |
| 132 | p.output(defaultColor, "") |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | func (p *cliProgress) output(col *color.Color, msg string) { |
| 137 | p.outputMutex.Lock() |
no test coverage detected