Commit c59125b6 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet Committed by Brian Tiger Chow

moved conn to own pkg

parent 5c79fc48
......@@ -29,8 +29,8 @@ type Conn struct {
secOut chan<- []byte
}
// 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,13 @@ package swarm
import (
"fmt"
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
peer "github.com/jbenet/go-ipfs/peer"
"net"
"testing"
peer "github.com/jbenet/go-ipfs/peer"
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
)
func setupPeer(id string, addr string) (*peer.Peer, error) {
......
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