p2p/conn: expose io.Closer interface
Juan Batiz-Benet committed
Feb 1, 2015 at 06:35 UTC
fc78f20093643dcb6feafbee9281210bce5bdc8e
1 file changed
+2
-1
p2p/net/conn/interface.go
+2
-1
@@ -18,6 +18,8 @@ import (
18
type Map map[u.Key]Conn
19
20
type PeerConn interface {
21
+ io.Closer
22
+
23
// LocalPeer (this side) ID, PrivateKey, and Address
24
LocalPeer() peer.ID
25
LocalPrivateKey() ic.PrivKey
@@ -45,7 +47,6 @@ type Conn interface {
47
48
msgio.Reader
49
msgio.Writer
48
- io.Closer
50
}
51
52
// Dialer is an object that can open connections. We could have a "convenience"