Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated of package io/ioutil #13067

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cl/antiquary/antiquary.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package antiquary

import (
"context"
"io/ioutil"
"math"
"os"
"strings"
"sync/atomic"
"time"
Expand Down Expand Up @@ -101,7 +101,7 @@ func NewAntiquary(ctx context.Context, blobStorage blob_storage.BlobStorage, gen
// Check if the snapshot directory has beacon blocks files aka "contains beaconblock" and has a ".seg" extension over its first layer
func doesSnapshotDirHaveBeaconBlocksFiles(snapshotDir string) bool {
// Iterate over the files in the snapshot directory
files, err := ioutil.ReadDir(snapshotDir)
files, err := os.ReadDir(snapshotDir)
if err != nil {
return false
}
Expand Down
4 changes: 2 additions & 2 deletions erigon-lib/log/v3/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package log
import (
"bytes"
"errors"
"io/ioutil"
"io"
"testing"
"time"
)
Expand Down Expand Up @@ -134,7 +134,7 @@ func BenchmarkDescendant8(b *testing.B) {
// (MIT License)
func newLog15() Logger {
logger := New()
logger.SetHandler(StreamHandler(ioutil.Discard, JsonFormat()))
logger.SetHandler(StreamHandler(io.Discard, JsonFormat()))
return logger
}

Expand Down