Codebase list golang-github-vbauerster-mpb / 1932966
convert newProxyReader to func Vladimir Bauer 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9494 result := make(chan bool)
9595 select {
9696 case b.operateState <- func(s *bState) { result <- len(s.ewmaDecorators) != 0 }:
97 return b.newProxyReader(r, <-result)
97 return newProxyReader(r, b, <-result)
9898 case <-b.done:
9999 return nil
100100 }
5151 return n, err
5252 }
5353
54 func (b *Bar) newProxyReader(r io.Reader, hasEwma bool) io.ReadCloser {
54 func newProxyReader(r io.Reader, b *Bar, hasEwma bool) io.ReadCloser {
5555 return toReadCloser(toReader(r, b, hasEwma))
5656 }
5757