progressWriter is a writer which will send the download progress
| 412 | |
| 413 | // progressWriter is a writer which will send the download progress |
| 414 | type progressWriter struct { |
| 415 | w io.Writer |
| 416 | updates chan<- v1.Update |
| 417 | size, complete int64 |
| 418 | } |
| 419 | |
| 420 | func (pw *progressWriter) Write(p []byte) (int, error) { |
| 421 | n, err := pw.w.Write(p) |
nothing calls this directly
no outgoing calls
no test coverage detected