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

Method updateProgress

client/pkg/progress/progressreader.go:62–66  ·  view source on GitHub ↗
(last bool)

Source from the content-addressed store, hash-verified

60}
61
62func (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}

Callers 2

ReadMethod · 0.95
CloseMethod · 0.95

Calls 1

WriteProgressMethod · 0.65

Tested by

no test coverage detected