提交 fc78f200 作者: Juan Batiz-Benet

p2p/conn: expose io.Closer interface

上级 5a8aa1af
...@@ -18,6 +18,8 @@ import ( ...@@ -18,6 +18,8 @@ import (
type Map map[u.Key]Conn type Map map[u.Key]Conn
type PeerConn interface { type PeerConn interface {
io.Closer
// LocalPeer (this side) ID, PrivateKey, and Address // LocalPeer (this side) ID, PrivateKey, and Address
LocalPeer() peer.ID LocalPeer() peer.ID
LocalPrivateKey() ic.PrivKey LocalPrivateKey() ic.PrivKey
...@@ -45,7 +47,6 @@ type Conn interface { ...@@ -45,7 +47,6 @@ type Conn interface {
msgio.Reader msgio.Reader
msgio.Writer msgio.Writer
io.Closer
} }
// Dialer is an object that can open connections. We could have a "convenience" // Dialer is an object that can open connections. We could have a "convenience"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论