io/ioutil deprecated (#3215)

master
guangwu 2 years ago committed by GitHub
parent 9fc7874336
commit 4f13fe8188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@ package mr
import ( import (
"context" "context"
"errors" "errors"
"io/ioutil" "io"
"log" "log"
"runtime" "runtime"
"sync/atomic" "sync/atomic"
@ -17,7 +17,7 @@ import (
var errDummy = errors.New("dummy") var errDummy = errors.New("dummy")
func init() { func init() {
log.SetOutput(ioutil.Discard) log.SetOutput(io.Discard)
} }
func TestFinish(t *testing.T) { func TestFinish(t *testing.T) {

Loading…
Cancel
Save