Skip to content

Commit

Permalink
fix: stop using the deprecated io/ioutil package
Browse files Browse the repository at this point in the history
  • Loading branch information
web3-bot committed Aug 14, 2023
1 parent e467bf6 commit 1da2fde
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
5 changes: 3 additions & 2 deletions bitswap/message/pb/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bitswap/testnet/internet_latency_delay_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"math/rand"
"time"

"github.com/ipfs/go-ipfs-delay"
delay "github.com/ipfs/go-ipfs-delay"
)

var sharedRNG = rand.New(rand.NewSource(time.Now().UnixNano()))
Expand Down
2 changes: 1 addition & 1 deletion examples/unixfs-file-cid/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
unixfile "github.com/ipfs/boxo/ipld/unixfs/file"
"github.com/ipfs/boxo/ipld/unixfs/importer/balanced"
uih "github.com/ipfs/boxo/ipld/unixfs/importer/helpers"
"github.com/libp2p/go-libp2p-routing-helpers"
routinghelpers "github.com/libp2p/go-libp2p-routing-helpers"

bsclient "github.com/ipfs/boxo/bitswap/client"
bsnet "github.com/ipfs/boxo/bitswap/network"
Expand Down
3 changes: 2 additions & 1 deletion examples/unixfs-file-cid/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package main
import (
"bytes"
"context"
"github.com/ipfs/go-cid"
"testing"

"github.com/ipfs/go-cid"

"github.com/libp2p/go-libp2p/core/peer"
)

Expand Down
2 changes: 1 addition & 1 deletion fetcher/helpers/block_visitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
bsfetcher "github.com/ipfs/boxo/fetcher/impl/blockservice"
"github.com/ipfs/boxo/fetcher/testutil"
mockrouting "github.com/ipfs/boxo/routing/mock"
"github.com/ipfs/go-block-format"
blocks "github.com/ipfs/go-block-format"
delay "github.com/ipfs/go-ipfs-delay"
"github.com/ipld/go-ipld-prime"
"github.com/ipld/go-ipld-prime/fluent"
Expand Down
3 changes: 2 additions & 1 deletion ipld/unixfs/pb/unixfs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions ipns/pb/record.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1da2fde

Please sign in to comment.