MCPcopy Index your code
hub / github.com/moby/moby / Close

Method Close

client/pkg/progress/progressreader.go:53–60  ·  view source on GitHub ↗

Close closes the progress reader and its underlying reader.

()

Source from the content-addressed store, hash-verified

51
52// Close closes the progress reader and its underlying reader.
53func (p *Reader) Close() error {
54 if p.current < p.size {
55 // print a full progress bar when closing prematurely
56 p.current = p.size
57 p.updateProgress(false)
58 }
59 return p.in.Close()
60}
61
62func (p *Reader) updateProgress(last bool) {
63 if last || p.current == p.size || p.rateLimiter.Allow() {

Callers

nothing calls this directly

Calls 2

updateProgressMethod · 0.95
CloseMethod · 0.65

Tested by

no test coverage detected