Skip to content

Commit cee7588

Browse files
stop relying on the deprecated go-libp2p-core package
1 parent cba436e commit cee7588

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+109
-107
lines changed

discovery/impl/local_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/ipfs/go-datastore"
1010
dshelp "github.com/ipfs/go-ipfs-ds-help"
11-
"github.com/libp2p/go-libp2p-core/peer"
11+
"github.com/libp2p/go-libp2p/core/peer"
1212
"github.com/stretchr/testify/assert"
1313
"github.com/stretchr/testify/require"
1414

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ require (
4545
github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c
4646
github.com/jpillora/backoff v1.0.0
4747
github.com/libp2p/go-libp2p v0.23.2
48-
github.com/libp2p/go-libp2p-core v0.20.1
4948
github.com/multiformats/go-multiaddr v0.7.0
5049
github.com/multiformats/go-multibase v0.1.1
5150
github.com/multiformats/go-multicodec v0.6.0
@@ -106,6 +105,7 @@ require (
106105
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
107106
github.com/libp2p/go-cidranger v1.1.0 // indirect
108107
github.com/libp2p/go-libp2p-asn-util v0.2.0 // indirect
108+
github.com/libp2p/go-libp2p-core v0.20.1 // indirect
109109
github.com/libp2p/go-msgio v0.2.0 // indirect
110110
github.com/libp2p/go-nat v0.1.0 // indirect
111111
github.com/libp2p/go-netroute v0.2.0 // indirect

retrievalmarket/impl/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
bstore "github.com/ipfs/go-ipfs-blockstore"
1212
logging "github.com/ipfs/go-log/v2"
1313
selectorparse "github.com/ipld/go-ipld-prime/traversal/selector/parse"
14-
"github.com/libp2p/go-libp2p-core/peer"
14+
"github.com/libp2p/go-libp2p/core/peer"
1515
"golang.org/x/xerrors"
1616

1717
"github.com/filecoin-project/go-address"

retrievalmarket/impl/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
dss "github.com/ipfs/go-datastore/sync"
1616
"github.com/ipld/go-ipld-prime/codec/dagcbor"
1717
selectorparse "github.com/ipld/go-ipld-prime/traversal/selector/parse"
18-
"github.com/libp2p/go-libp2p-core/peer"
18+
"github.com/libp2p/go-libp2p/core/peer"
1919
"github.com/stretchr/testify/assert"
2020
"github.com/stretchr/testify/require"
2121
cbg "github.com/whyrusleeping/cbor-gen"

retrievalmarket/impl/clientstates/client_states.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/ipfs/go-cid"
77
logging "github.com/ipfs/go-log/v2"
8-
peer "github.com/libp2p/go-libp2p-core/peer"
8+
"github.com/libp2p/go-libp2p/core/peer"
99

1010
"github.com/filecoin-project/go-address"
1111
datatransfer "github.com/filecoin-project/go-data-transfer"

retrievalmarket/impl/clientstates/client_states_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88

99
"github.com/ipfs/go-cid"
10-
peer "github.com/libp2p/go-libp2p-core/peer"
10+
"github.com/libp2p/go-libp2p/core/peer"
1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
1313

retrievalmarket/impl/dtutils/dtutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
bstore "github.com/ipfs/go-ipfs-blockstore"
1111
logging "github.com/ipfs/go-log/v2"
1212
"github.com/ipld/go-ipld-prime"
13-
peer "github.com/libp2p/go-libp2p-core/peer"
13+
"github.com/libp2p/go-libp2p/core/peer"
1414

1515
datatransfer "github.com/filecoin-project/go-data-transfer"
1616
"github.com/filecoin-project/go-statemachine/fsm"

retrievalmarket/impl/dtutils/dtutils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
ds "github.com/ipfs/go-datastore"
1010
bstore "github.com/ipfs/go-ipfs-blockstore"
1111
"github.com/ipld/go-ipld-prime"
12-
peer "github.com/libp2p/go-libp2p-core/peer"
12+
"github.com/libp2p/go-libp2p/core/peer"
1313
"github.com/stretchr/testify/require"
1414

1515
datatransfer "github.com/filecoin-project/go-data-transfer"

retrievalmarket/impl/provider_environments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/ipfs/go-cid"
99
bstore "github.com/ipfs/go-ipfs-blockstore"
10-
"github.com/libp2p/go-libp2p-core/peer"
10+
"github.com/libp2p/go-libp2p/core/peer"
1111
"golang.org/x/xerrors"
1212

1313
"github.com/filecoin-project/dagstore"

retrievalmarket/impl/provider_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
dss "github.com/ipfs/go-datastore/sync"
1515
"github.com/ipld/go-ipld-prime/codec/dagcbor"
1616
selectorparse "github.com/ipld/go-ipld-prime/traversal/selector/parse"
17-
"github.com/libp2p/go-libp2p-core/peer"
17+
"github.com/libp2p/go-libp2p/core/peer"
1818
"github.com/multiformats/go-multicodec"
1919
"github.com/stretchr/testify/assert"
2020
"github.com/stretchr/testify/require"
@@ -260,7 +260,7 @@ func TestDynamicPricing(t *testing.T) {
260260
sa.MarkUnsealed(context.TODO(), p.SectorID, p.Offset.Unpadded(), p.Length.Unpadded())
261261
},
262262
expFunc: func(t *testing.T, pieceStore *tut.TestPieceStore, dagStore *tut.MockDagStoreWrapper) {
263-
//pieceStore.ExpectCID(payloadCID, expectedCIDInfo)
263+
// pieceStore.ExpectCID(payloadCID, expectedCIDInfo)
264264
pieceStore.ExpectPiece(expectedPieceCID1, piece1)
265265
pieceStore.ExpectPiece(expectedPieceCID2, piece2)
266266
dagStore.AddBlockToPieceIndex(payloadCID, expectedPieceCID1)

0 commit comments

Comments
 (0)