global: stop using ioutil

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2021-02-17 22:19:27 +01:00
parent 4e439ea10e
commit 8bf4204d2e
3 changed files with 4 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"io/ioutil"
"io"
"math/rand"
"net"
"runtime"
@@ -402,7 +402,7 @@ func BenchmarkUAPIGet(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
pair[0].dev.IpcGetOperation(ioutil.Discard)
pair[0].dev.IpcGetOperation(io.Discard)
}
}