Skip to content

Commit

Permalink
minor: vars swap
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jan 3, 2025
1 parent 7e17f28 commit 72e254c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (p *Progress) Add(total int64, filler BarFiller, options ...BarOption) (*Ba
}

func (p *Progress) traverseBars(cb func(b *Bar) bool) {
iter, drop := make(chan *Bar), make(chan struct{})
drop, iter := make(chan struct{}), make(chan *Bar)
select {
case p.operateState <- func(s *pState) { s.hm.iter(drop, iter, nil) }:
for b := range iter {
Expand Down

0 comments on commit 72e254c

Please sign in to comment.