提交 fc78f200 作者: Juan Batiz-Benet

p2p/conn: expose io.Closer interface

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论