diff --git a/bar.go b/bar.go index b282ab0..a120ad0 100644 --- a/bar.go +++ b/bar.go @@ -146,7 +146,7 @@ } // ProxyReader wraps r with metrics required for progress tracking. -func (b *Bar) ProxyReader(r io.Reader) io.Reader { +func (b *Bar) ProxyReader(r io.Reader) io.ReadCloser { if r == nil { panic("expect io.Reader, got nil") }