diff --git a/p2p/net/conn/interface.go b/p2p/net/conn/interface.go index 558402fdd..749d7d38b 100644 --- a/p2p/net/conn/interface.go +++ b/p2p/net/conn/interface.go @@ -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"