Codebase list golang-github-vbauerster-mpb / adefe39
refactoring io example replace ioutil.Discard Vladimir Bauer 2 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
22 import (
33 "crypto/rand"
44 "io"
5 "io/ioutil"
65 "time"
76
87 "github.com/vbauerster/mpb/v8"
4443 defer proxyReader.Close()
4544
4645 // copy from proxyReader, ignoring errors
47 _, _ = io.Copy(ioutil.Discard, proxyReader)
46 _, _ = io.Copy(io.Discard, proxyReader)
4847
4948 p.Wait()
5049 }