moved conn to own pkg
Juan Batiz-Benet committed
Sep 11, 2014 at 00:58 UTC
c59125b64c809a13ce04d3524053d0ab6a7d5404
2 files changed
+7
-5
net/conn/conn.go
renamed
+2
-2
@@ -29,8 +29,8 @@ type Conn struct {
29
secOut chan<- []byte
30
}
31
32
-// ConnMap maps Keys (Peer.IDs) to Connections.
33
-type ConnMap map[u.Key]*Conn
32
+// Map maps Keys (Peer.IDs) to Connections.
33
+type Map map[u.Key]*Conn
34
35
// Dial connects to a particular peer, over a given network
36
// Example: Dial("udp", peer)
net/conn/conn_test.go
renamed
+5
-3
@@ -2,11 +2,13 @@ package swarm
2
3
import (
4
"fmt"
5
- ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
6
- mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
7
- peer "github.com/jbenet/go-ipfs/peer"
5
"net"
6
"testing"
7
+
8
+ peer "github.com/jbenet/go-ipfs/peer"
9
+
10
+ ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
11
+ mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
12
)
13
14
func setupPeer(id string, addr string) (*peer.Peer, error) {