p2p/conn: expose io.Closer interface

This commit is contained in:
Juan Batiz-Benet 2015-02-01 06:35:48 -08:00
parent 5a8aa1afcf
commit fc78f20093

View File

@ -18,6 +18,8 @@ import (
type Map map[u.Key]Conn
type PeerConn interface {
io.Closer
// LocalPeer (this side) ID, PrivateKey, and Address
LocalPeer() peer.ID
LocalPrivateKey() ic.PrivKey
@ -45,7 +47,6 @@ type Conn interface {
msgio.Reader
msgio.Writer
io.Closer
}
// Dialer is an object that can open connections. We could have a "convenience"