moved conn to own pkg

This commit is contained in:
Juan Batiz-Benet 2014-09-11 00:58:35 -07:00
parent 12c82841d8
commit cd6b4e4867
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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) {