Skip to content

Commit ca6f70c

Browse files
authored
Merge pull request multiformats#22 from libp2p/feat/consolidate-abstractions
Consolidate abstractions and core types into go-libp2p-core (multiformats#28)
2 parents dba55de + 6e27891 commit ca6f70c

File tree

6 files changed

+141
-109
lines changed

6 files changed

+141
-109
lines changed

conn.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ package stream
33
import (
44
"fmt"
55

6-
inet "github.com/libp2p/go-libp2p-net"
7-
transport "github.com/libp2p/go-libp2p-transport"
8-
smux "github.com/libp2p/go-stream-muxer"
6+
mux "github.com/libp2p/go-libp2p-core/mux"
7+
network "github.com/libp2p/go-libp2p-core/network"
8+
transport "github.com/libp2p/go-libp2p-core/transport"
99
)
1010

1111
type transportConn struct {
12-
smux.Conn
13-
inet.ConnMultiaddrs
14-
inet.ConnSecurity
12+
mux.MuxedConn
13+
network.ConnMultiaddrs
14+
network.ConnSecurity
1515
transport transport.Transport
1616
}
1717

go.mod

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ module github.com/libp2p/go-libp2p-transport-upgrader
33
require (
44
github.com/ipfs/go-log v0.0.1
55
github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2
6-
github.com/libp2p/go-conn-security v0.0.1
7-
github.com/libp2p/go-libp2p-interface-pnet v0.0.1
6+
github.com/libp2p/go-libp2p-core v0.0.1
87
github.com/libp2p/go-libp2p-mplex v0.1.1
9-
github.com/libp2p/go-libp2p-net v0.0.1
10-
github.com/libp2p/go-libp2p-peer v0.0.1
11-
github.com/libp2p/go-libp2p-transport v0.0.1
12-
github.com/libp2p/go-maddr-filter v0.0.1
13-
github.com/libp2p/go-stream-muxer v0.0.1
14-
github.com/multiformats/go-multiaddr v0.0.1
8+
github.com/libp2p/go-libp2p-testing v0.0.2 // indirect
9+
github.com/libp2p/go-maddr-filter v0.0.4
10+
github.com/libp2p/go-mplex v0.0.4 // indirect
11+
github.com/libp2p/go-stream-muxer v0.1.0 // indirect
12+
github.com/multiformats/go-multiaddr v0.0.4
13+
github.com/multiformats/go-multiaddr-dns v0.0.2 // indirect
1514
github.com/multiformats/go-multiaddr-net v0.0.1
16-
github.com/onsi/ginkgo v1.7.0
17-
github.com/onsi/gomega v1.4.3
15+
github.com/multiformats/go-multihash v0.0.5 // indirect
16+
github.com/onsi/ginkgo v1.8.0
17+
github.com/onsi/gomega v1.5.0
1818
)

0 commit comments

Comments
 (0)