Commit fc78f200 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

p2p/conn: expose io.Closer interface

parent 5a8aa1af
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment