Skip to content

Commit

Permalink
refactoring io example
Browse files Browse the repository at this point in the history
replace ioutil.Discard
  • Loading branch information
vbauerster committed Dec 6, 2023
1 parent 6b48433 commit adefe39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _examples/io/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"crypto/rand"
"io"
"io/ioutil"
"time"

"github.com/vbauerster/mpb/v8"
Expand Down Expand Up @@ -45,7 +44,7 @@ func main() {
defer proxyReader.Close()

// copy from proxyReader, ignoring errors
_, _ = io.Copy(ioutil.Discard, proxyReader)
_, _ = io.Copy(io.Discard, proxyReader)

p.Wait()
}

0 comments on commit adefe39

Please sign in to comment.