1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-26 04:26:07 +08:00

feat: go-libp2p 0.36 and /webrtc-direct listener (#10463)

Co-authored-by: Marco Munizaga <git@marcopolo.io>
This commit is contained in:
Marcin Rataj
2024-08-06 21:25:27 +02:00
committed by GitHub
parent 749a61bae2
commit feef0851bd
16 changed files with 183 additions and 171 deletions

View File

@ -16,11 +16,11 @@ import (
bstore "github.com/ipfs/boxo/blockstore"
chunker "github.com/ipfs/boxo/chunker"
offline "github.com/ipfs/boxo/exchange/offline"
u "github.com/ipfs/boxo/util"
cid "github.com/ipfs/go-cid"
ds "github.com/ipfs/go-datastore"
dssync "github.com/ipfs/go-datastore/sync"
ipld "github.com/ipfs/go-ipld-format"
"github.com/ipfs/go-test/random"
)
func getDagserv(t *testing.T) ipld.DAGService {
@ -35,7 +35,7 @@ func TestMetadata(t *testing.T) {
// Make some random node
ds := getDagserv(t)
data := make([]byte, 1000)
_, err := io.ReadFull(u.NewTimeSeededRand(), data)
_, err := io.ReadFull(random.NewRand(), data)
if err != nil {
t.Fatal(err)
}