diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-03 16:09:04 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-05 09:55:50 +0100 |
commit | 801977b40d8500ff68cf5a6facd82f035735076a (patch) | |
tree | 3e67e319511dce7b84a6ab16dfa8ecc3d8ec5e7a /vendor/github.com/vbauerster/mpb/v4/proxyreader.go | |
parent | 5092c078ec635c9f1598989b27ccf53369b3cf2b (diff) | |
download | podman-801977b40d8500ff68cf5a6facd82f035735076a.tar.gz podman-801977b40d8500ff68cf5a6facd82f035735076a.tar.bz2 podman-801977b40d8500ff68cf5a6facd82f035735076a.zip |
vendor github.com/containers/image/v5@v5.2.0
See release notes:
https://github.com/containers/image/releases/tag/v5.2.0
Fixes: #4877
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/github.com/vbauerster/mpb/v4/proxyreader.go')
-rw-r--r-- | vendor/github.com/vbauerster/mpb/v4/proxyreader.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vendor/github.com/vbauerster/mpb/v4/proxyreader.go b/vendor/github.com/vbauerster/mpb/v4/proxyreader.go index 736142412..0e4b51f09 100644 --- a/vendor/github.com/vbauerster/mpb/v4/proxyreader.go +++ b/vendor/github.com/vbauerster/mpb/v4/proxyreader.go @@ -18,9 +18,7 @@ func (prox *proxyReader) Read(p []byte) (n int, err error) { prox.iT = time.Now() } if err == io.EOF { - go func() { - prox.bar.SetTotal(0, true) - }() + go prox.bar.SetTotal(0, true) } return } @@ -37,9 +35,7 @@ func (prox *proxyWriterTo) WriteTo(w io.Writer) (n int64, err error) { prox.iT = time.Now() } if err == io.EOF { - go func() { - prox.bar.SetTotal(0, true) - }() + go prox.bar.SetTotal(0, true) } return } |