diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-05 18:14:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 18:14:53 +0100 |
commit | fc0673f5612368e0d90173bb061f4b257d08b885 (patch) | |
tree | 2a7146aa7fd8b18190523eb2211d90c61e97fac8 /vendor/github.com/vbauerster/mpb/v4/proxyreader.go | |
parent | 107fd64970faa5870a4c23c971f5061e57b99067 (diff) | |
parent | baec9f3b10faa4f319b92549ea460aba0af91a4d (diff) | |
download | podman-fc0673f5612368e0d90173bb061f4b257d08b885.tar.gz podman-fc0673f5612368e0d90173bb061f4b257d08b885.tar.bz2 podman-fc0673f5612368e0d90173bb061f4b257d08b885.zip |
Merge pull request #5062 from vrothberg/update-image
vendor github.com/containers/image/v5@v5.2.0
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 } |