mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 19:37:46 +08:00
moved conn to own pkg
This commit is contained in:
parent
12c82841d8
commit
cd6b4e4867
@ -24,8 +24,8 @@ type Conn struct {
|
||||
Incoming *msgio.Chan
|
||||
}
|
||||
|
||||
// ConnMap maps Keys (Peer.IDs) to Connections.
|
||||
type ConnMap map[u.Key]*Conn
|
||||
// Map maps Keys (Peer.IDs) to Connections.
|
||||
type Map map[u.Key]*Conn
|
||||
|
||||
// Dial connects to a particular peer, over a given network
|
||||
// Example: Dial("udp", peer)
|
||||
@ -2,11 +2,12 @@ package swarm
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
"testing"
|
||||
|
||||
peer "github.com/jbenet/go-ipfs/peer"
|
||||
ma "github.com/jbenet/go-multiaddr"
|
||||
mh "github.com/jbenet/go-multihash"
|
||||
"net"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func setupPeer(id string, addr string) (*peer.Peer, error) {
|
||||
Loading…
Reference in New Issue
Block a user