Commit 095af8f2 authored by Raúl Kripalani's avatar Raúl Kripalani Committed by Steven Allen

migrate to go-libp2p-core.

closes #6391

License: MIT
Signed-off-by: default avatarRaúl Kripalani <raul@protocol.ai>
parent f8ac9dae
......@@ -9,7 +9,7 @@ import (
cid "github.com/ipfs/go-cid"
q "github.com/ipfs/go-ipfs/provider/queue"
logging "github.com/ipfs/go-log"
routing "github.com/libp2p/go-libp2p-routing"
routing "github.com/libp2p/go-libp2p-core/routing"
)
var logP = logging.Logger("provider.simple")
......
......@@ -10,7 +10,7 @@ import (
datastore "github.com/ipfs/go-datastore"
sync "github.com/ipfs/go-datastore/sync"
blocksutil "github.com/ipfs/go-ipfs-blocksutil"
pstore "github.com/libp2p/go-libp2p-peerstore"
peer "github.com/libp2p/go-libp2p-core/peer"
q "github.com/ipfs/go-ipfs/provider/queue"
......@@ -28,7 +28,7 @@ func (r *mockRouting) Provide(ctx context.Context, cid cid.Cid, recursive bool)
return nil
}
func (r *mockRouting) FindProvidersAsync(ctx context.Context, cid cid.Cid, timeout int) <-chan pstore.PeerInfo {
func (r *mockRouting) FindProvidersAsync(ctx context.Context, cid cid.Cid, timeout int) <-chan peer.AddrInfo {
return nil
}
......
......@@ -14,7 +14,7 @@ import (
logging "github.com/ipfs/go-log"
merkledag "github.com/ipfs/go-merkledag"
verifcid "github.com/ipfs/go-verifcid"
routing "github.com/libp2p/go-libp2p-routing"
routing "github.com/libp2p/go-libp2p-core/routing"
)
var logR = logging.Logger("reprovider.simple")
......
......@@ -10,8 +10,8 @@ import (
dssync "github.com/ipfs/go-datastore/sync"
"github.com/ipfs/go-ipfs-blockstore"
mock "github.com/ipfs/go-ipfs-routing/mock"
pstore "github.com/libp2p/go-libp2p-peerstore"
"github.com/libp2p/go-testutil"
peer "github.com/libp2p/go-libp2p-core/peer"
testutil "github.com/libp2p/go-libp2p-testing/net"
. "github.com/ipfs/go-ipfs/provider/simple"
)
......@@ -43,7 +43,7 @@ func TestReprovide(t *testing.T) {
t.Fatal(err)
}
var providers []pstore.PeerInfo
var providers []peer.AddrInfo
maxProvs := 100
provChan := clB.FindProvidersAsync(ctx, blk.Cid(), maxProvs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment