@@ -5,10 +5,10 @@ import (
5
5
"errors"
6
6
"time"
7
7
8
- net "github.com/libp2p/go-libp2p-net "
9
- "github.com/libp2p/go-libp2p-peer"
10
- pstore "github.com/libp2p/go-libp2p-peerstore "
11
- "github.com/libp2p/go-libp2p-protocol"
8
+ "github.com/libp2p/go-libp2p-core/network "
9
+ "github.com/libp2p/go-libp2p-core/ peer"
10
+ "github.com/libp2p/go-libp2p-core/protocol "
11
+
12
12
ma "github.com/multiformats/go-multiaddr"
13
13
)
14
14
@@ -26,7 +26,7 @@ type ConnectionInfo interface {
26
26
Address () ma.Multiaddr
27
27
28
28
// Direction returns which way the connection was established
29
- Direction () net .Direction
29
+ Direction () network .Direction
30
30
31
31
// Latency returns last known round trip time to the peer
32
32
Latency () (time.Duration , error )
@@ -38,7 +38,7 @@ type ConnectionInfo interface {
38
38
// SwarmAPI specifies the interface to libp2p swarm
39
39
type SwarmAPI interface {
40
40
// Connect to a given peer
41
- Connect (context.Context , pstore. PeerInfo ) error
41
+ Connect (context.Context , peer. AddrInfo ) error
42
42
43
43
// Disconnect from a given address
44
44
Disconnect (context.Context , ma.Multiaddr ) error
0 commit comments