Function
progressWorkerFactroy
(structuredLogging bool, progress *Progress)
Source from the content-addressed store, hash-verified
| 184 | } |
| 185 | |
| 186 | func progressWorkerFactroy(structuredLogging bool, progress *Progress) ProgressWorker { |
| 187 | if structuredLogging { |
| 188 | worker := loggerProgressWorker{progress: progress} |
| 189 | return &worker |
| 190 | } |
| 191 | |
| 192 | worker := standardProgressWorker{progress: progress} |
| 193 | return &worker |
| 194 | } |
| 195 | |
| 196 | type standardProgressWorker struct { |
| 197 | progress *Progress |
Tested by
no test coverage detected