mirror of
https://github.com/containers/skopeo.git
synced 2025-09-21 01:49:50 +00:00
fix(deps): update github.com/containers/image/v5 digest to 58d5eb6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
11
vendor/github.com/vbauerster/mpb/v8/progress.go
generated
vendored
11
vendor/github.com/vbauerster/mpb/v8/progress.go
generated
vendored
@@ -201,10 +201,15 @@ func (p *Progress) traverseBars(cb func(b *Bar) bool) {
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateBarPriority same as *Bar.SetPriority(int).
|
||||
func (p *Progress) UpdateBarPriority(b *Bar, priority int) {
|
||||
// UpdateBarPriority either immediately or lazy.
|
||||
// With lazy flag order is updated after the next refresh cycle.
|
||||
// If you don't care about laziness just use *Bar.SetPriority(int).
|
||||
func (p *Progress) UpdateBarPriority(b *Bar, priority int, lazy bool) {
|
||||
if b == nil {
|
||||
return
|
||||
}
|
||||
select {
|
||||
case p.operateState <- func(s *pState) { s.hm.fix(b, priority) }:
|
||||
case p.operateState <- func(s *pState) { s.hm.fix(b, priority, lazy) }:
|
||||
case <-p.done:
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user